Solved

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

Posted on 2007-03-23
3
329 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Ageil
Sammy Ageil 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

626 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