Solved

HTTP Error 404 - File or directory not found. on ASPX files.

Posted on 2007-03-23
3
322 Views
Last Modified: 2012-06-27
I am getting the error HTTP Error 404 - File or directory not found when I try to open an *.aspx file.
I can bring up *.html and *.asp files with no problem.

I am using Win2003 Server SR1.
under IIS, Web Sites Properties,  ASP.NET Version I have 2.050727
Under Web Server Extensions,  I selected Allowed - Active Server Pages

I have double checked the spelling to make sure that the *.aspx file exists in the home directory.
0
Comment
Question by:Ruben1717
3 Comments
 
LVL 25

Accepted Solution

by:
dstanley9 earned 250 total points
ID: 18782479
You might need to register that sire with ASP.NET.

Use the command

Aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1

replacing the 1 with the ID of the side (can be seen in IIS Manager) and SampleApp1 replaced with the name of your application.
0
 
LVL 27

Assisted Solution

by:Sammy
Sammy earned 250 total points
ID: 18782539
if that doesn't resolve your problem try C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
assuming you are using an XP machine
if you are on a 2003 you need to add enable
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i -enable

Good luck

0
 

Author Comment

by:Ruben1717
ID: 18783286
Thank you very much it is working now.
I used both suggestions.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET MVC 2 40
Problem to refer to value 8 62
What can cause the styling on a .NET site to not be found? 17 29
RLDC Reporting in Visual studio 11 30
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question