Home > Articles > How to bring the application to maintainance mode, ASP.net  


How to bring the application to maintainance mode, ASP.net

If you place a file named app_offline.htm into the root of an ASP.NET application, the application will shutdown and any page request for the application will return this file instead. This feature makes it extremely easy to take down an application while a large update is being made. As soon as you remove the file any page requests to the application will continue as normal. This feature is first introduced in ASP.NET 2.0 and it is available now in all the later versions.

Sample app_offline.htm

<html>
  <head>
    <title>Application is not available</title>
  </head>
  <body>
    <Center>This application is temporarily not available. Please try again later</Center>
  </body>
</html>


Welcome Guest
Sign In | Register