Wednesday, March 12, 2008

Bringing down an ASP.NET Application for updates

ASP.NET Debugging : Bringing down an ASP.NET Application for updates

"One of the really useful, and not well-known features of ASP.NET 2.0 is that you can use a special file to take your application down and show users a friendly message while you update the site... Just place a file called "app_offline.htm" in the root of your application.  The html of this file is what will get displayed to any users that attempt to browse to the site.  When you are done making changes, simply delete this file and the site will start back up normally."

A little gem and nice to know. The article also includes a link to the Top 10 Best Practices for Production ASP.NET Applications, which also includes the app_offline.htm tip, as well as other tips like generating new encryption keys.


Comments: Post a Comment

Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]