Solved

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

Posted on 2007-03-23
3
312 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you very much it is working now.
I used both suggestions.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

10 Experts available now in Live!

Get 1:1 Help Now