19 Sep 2008
Discovered this handy feature that works with ASP.NET 2.0 (and above) sites.
If you drop a file called app_offline.htm into the root directory of your ASP.NET website it immediately stops the application and any requests to your site will be served with the app_offline.htm page. This will continue until the app_offline.htm file is removed at whichpoint your web application will restart and begin serving web requests.
Very handy if you need to get a "Site under maintenance" message up quickly if you encounter a problem however as this prevents access to your actual site (remotely and locally) I don't see how you can run any tests once you believe your in a position to get your site back up.