ASP.NET 2.0 - The Mysterious 404
I ran into a problem with an existing ASP.NET 2.0 web project that had me cursing me machine for a while. No matter what I try any page in my solution I browse to returned a "The resource cannot be found." 404 error. When trying to debug to see if anything is actually executing I could see that no breakpoints would be hit which confused things even more.
A quick Google turned up the cause for this behavior -
Starting with ASP.NET 2.0 you can create a "magic" file called app_offline.htm which will take your application offline. Useful in cases where you want to take a database offline and there's still connections open from your application etc.
Deleted the file and everything worked like before. The file was left there from a previous Publish Website operation. Should the operation fail the file is not deleted.
Learned about the existance of this file the hardway but it's something useful to know should you want to take an application offline quickly...
More info :
powered by IMHO 1.2