Quickly and Easily Take Your ASP.Net 2.0 Web Site Offline For Maintenance

I found this handy feature of the ASP.Net 2.0 Framework today: If you want to disable all access to your ASP.Net 2.0 web site you can just place a file called App_Offline.htm in you root directory. All requests to any folder of the site are directed to this page, so you can write a friendly 'Down for Maintenance' message there and be comfortable knowing that no one will access the site while you're updating files or the database. The web application is completely unloaded from the web server so it can also help when you want to instantly unlock an Access or SQL Express database that resides in the app's App_Data directory.

Jimmy

Related posts

Comments

Add comment


 

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

March 9. 2010 13:58

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010