Taking a ASP.NET Web App Offiline

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.?
Ray TurnerSenior ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongSoftware Team LeadCommented:
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.
Chinmay PatelChief Technology NinjaCommented:
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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray TurnerSenior ConsultantAuthor Commented:
Thanks to you both!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.