ASP.NET Software Engineering

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!

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

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.