Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to page 4 74
Entity Framework 3 47
Name space syntax error 12 44
Need a starter for ETL protocol? 4 43
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now