BIBD BIBD - 1 year ago 50
ASP.NET (C#) Question

Why would an aspx file return 404 ("The page cannot be found")

Why when I access an aspx (e.g., - not the real site) through IE6 would I get a 404 Error (i.e., "The page cannot be found") in IIS6

I've got scripts enabled for the website and I've tried with executables enabled as well.

Here is the full error:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or
is temporarily unavailable.

Please try the following:

Make sure that the Web site address displayed in the address bar of your
browser is spelled and formatted correctly.
If you reached this page by clicking a link, contact the Web site
administrator to alert them that the link is incorrectly formatted.
Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)


Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the
words HTTP and 404.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for
topics titled Web Site Setup, Common Administrative Tasks, and About Custom
Error Messages.

I can get to Default.htm in the same directory, so I know the path is right. I've opened it up to everyone (temporarily) so I know the permissions are right.

Joe Joe
Answer Source

It could be a lot of things. I had this issue today because .NET had not been re-initialized after installing IIS (aspnet_regiis -i -enable or equivalent).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download