I used the extremely convenient app_offline.htm trick to close / update sites in the past without any problems.
Make sure you actually put the app_offline.htm file in the "root" of the site that you configured in IIS.
Also make sure the file is named as it should be: app_offline.htm
Other than that, there should not be any other changes to IIS that you will need to make, because the processing of this file (with this specific name) is handled by the ASP.NET runtime, and not by IIS itself (for IIS v6).
Remember, however, that although placing this file in the root of your site will cause the application to "shut down" and display the contents of the file "app_offline.htm", any existing requests will still get the real website served them. Only new requests will receive the app_offline.htm content.
If you still have problems, try the following links for more information:
Scott Gu App_Offline.htm
App_Offline.htm and working on the Izhevsk Errors function
Will app_offline.htm stop current requests or only new requests?
CraigTP Jul 20 '09 at 13:23 2009-07-20 13:23
source share