Taking a ASP.NET Web App Offiline

Ray Turner
Ray Turner used Ask the Experts™
on
What is the correct way to take a ASP.NET web application offline?  Is it necessary to take a web application offline to update dlls, etc.?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ryan ChongSoftware Team Lead

Commented:
What is the correct way to take a ASP.NET web application offline?
You can temporarily stop your site in IIS.

Is it necessary to take a web application offline to update dlls, etc.?
You can probably take it offline temporary while you updating the dlls or if there's a feature within your web application to show and switch your site to "under maintenance", that could be useful too.
Chief Technology Ninja
Distinguished Expert 2018
Commented:
Hi Ray,

Please check this blog https://weblogs.asp.net/scottgu/App_5F00_Offline.htm-and-working-around-the-_2200_IE-Friendly-Errors_2200_-feature from Scott Guthrie, there is a file that you are supposed to drop in your app's root directory called app_offline.htm. That is the right way of taking your app offline.

And NO.. it is not at all a necessary to take your app offline to update DLLs and other parts. It is a good practice (from user experience perspective as well as deployment process perspective - what if your worker process or any other process has locked some of the files?) to keep your app offline when you are upgrading. Personally, during development phase - I never bother to take the app offline, sometimes QA as well. Staging/Integration/Prod are different story I will definitely first put the app offline -if required, do some cleanups and then deploy my app - bring the app back online.

Regards,
Chinmay.
Ray TurnerSenior Consultant

Author

Commented:
Thanks to you both!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial