I'm doing some tests with deploying an application using the app_offline.htm functionality in asp.net. I've found that if I have a working application, and I put an app_offline.htm file in the root, and then rename the \bin folder, my app_offline.htm file does not get displayed. If I rename the bin folder back to "bin", my app_offline.htm file gets displayed as expected. I had assumed/thought that the presence of app_offline would supersede anything else that happens...am I mistaken? This is on Windows 7/IIS 7.5.
A:
If I had to guess, I'd say that a change to your /bin (in this case, the change being its deleted) is triggering IIS to recycle your app. app_offline.htm stops that from happening for content changes and deletions, but not /bin directory deletions. I'd imagine you'd see similar behavior if you renamed the directory instead of deleting it.
Jonathan Bates
2009-08-21 22:33:09
A:
Check the .net runtime version for the app pool. app_offline.htm is only supported in 2.0 and above. If the app pool is running .net 1.1, it won't work.
Ryan
2010-01-18 17:18:09