Using App_Offline.htm to show that an ASP.NET site is temporarily down

Posted: (EET/GMT+2)

 

Sometimes, you need to update your large ASP.NET web application, but doing so takes time. In these situations it would be great if you could put up a message saying "Under construction" for a moment, and then do your stuff, and then resume. Luckily, you can.

If you create a file called "app_offline.htm" to the root of your site, ASP.NET will notice that file and display it for all requests to the site. Great, just what you often need. More information is available here.

Happy Easter everyone!