Solved

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

Posted on 2007-03-23
3
324 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

685 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