ASP.NET “Page Not Found” when pages exist…

I hit a strange problem today when I started getting the ASP.NET 404 error page whenever I tried to access my ASP.NET pages through IIS – whilst any non-ASP.NET pages in the same directory worked fine. After a bit of digging, it turned out that this was caused by me fiddling with the site’s “home directory” in IIS – I’d put it back to it’s original value, but with a trailing backslash… so

c:inetpubwwwroot <– this didn’t work

instead of

c:inetpubwwwroot  <– this worked

I removed the trailing backslash, and everything was fine again. Very wierd!

Comments

One response to “ASP.NET “Page Not Found” when pages exist…”

  1. Nat avatar

    That is because you may install some patches 🙂

    http://support.microsoft.com/kb/894670

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.