Iis – 404 when page exists – IIS 5, ASP.NET 4.0

.net-4.0asp.nethttp-status-code-404iis

I have a webserver running Server 2003 Datacenter and IIS 5 which is hosting a variety of ASP.NET 2.0 websites. I'm attempting to add an ASP.NET 4.0 website which I wrote via the VS2010 Beta, and I have .NET 4.0 Beta 1 installed on the server.

The website appears to be configured correctly; anonymous access is on, it points to the right folder, and is set to asp.net 4.0.

Why might it be giving me a 404 error when I browse to it, both locally and remotely?

Best Answer

Is logging turned on? If it isn't, turn it on. If it is on, check to see of a corresponding entry is written to the log file, and check to see if all its details match up.

If no entry is being written, then it's possible that the wrong website in IIS is serving the content for your request (check the hostname it's listening on).

Lastly, are you sure it's IIS 5? I thought 2003 shipped with IIS 6?

Related Topic