There's a new feature in ASP.NET 2.0 that I think is pretty cool. I am sure most of you need to do maintainence your web application every once in a while (uploading a new version, DB maintainence, etc.). In most cases, you would want to shut down your application for various reasons. For example, - to release lock on opened file (Access, txt, etc) - you do not want user to see error message Before ASP.NET 2.0, you'll need to shut down the site on IIS and unload the application. With ASP.NET 2.0, all you need to do is to create a file called App_Offline.htm in your application root. Once IIS sees this file in the application root, it will unload the app domain and stop processing new requests. It will also respond w/ the content of the app_offline.htm file. The only downside is that it only work with file extension mapped to asp.net. Happy programming!
my app_offline.htm doesn't seem to work hi Bruce, In your post you say that the file has to be mapped to asp.net, but I thought that was built in? In any case, may file does not work as you described. Can you help me determine why? Steven
Hi, Take a look at this post from ScottGu: http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx