ASP.NET 2.0 Returns HTTP 404 on existing page

  • Thread starter Thread starter Peter Strøiman
  • Start date Start date
P

Peter Strøiman

Hi.

I have a web project I have been working on, and it used to work, but now it
reports a 404 error on pages that do exist.
Even if I allow directory browsing on the web application and see the name
of the file I wish to see, and click it from there, it gives me a 404.

I tried removing .NET from the IIS and reinstalling it (aspnet_regiis -u
then -i). No help

By a google search, I can see that I'm not the only person with the problem,
but apparently, noone has the answer.

I'm using .NET verion 2.0.50215

Thanks in advance,
Peter Strøiman
 
I discovered one detail. If I modify web.config so that it's no longer
valid, I get a "correct error message" saying that the web.config is
invalid.
 
Argh

Found out the problem.

A small file named app_offline.htm had mysteriously appeared in my project.
The very existence of that file causes the web site to be taken offline.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

HTTP 404, when accessing WebResource.axd 2
IIS7: *.asp = 404 1
IIS7: *.aspx = 404 4
How to troubleshoot HTTP 404 3
Unexpected 404 4
HTTP 404 - File not found 7
HTTP 404. 4
Throwing a 404 when rewriting urls 1

Back
Top