Some time ago, system upgrade, because the system update release time is longer, so must stop the site to update. Cause a lot of users to feedback system can not access, also think the site was hacked.
So after that thing we're thinking about how to do it without downtime and heat deployment.
In a single-machine environment (dual or distributed systems do not consider this problem), app_offline.htm is a good choice,
When ASP. NET sees the app_offline.htm file in the application, it closes the application's App-domain and then sends the request to the App_offline content.
So, in the maintenance, upgrade time, you do not have to stop your Web application, but a friendly way to prompt the user, this site is updating the hint, so the experience will be more friendly.
1. Create a app_offline.htm htm paging file,
2. Place the app_offline.htm in the root directory of your Web site. In this way, any external request will be transferred to the page immediately.
It is important to note that:
(1) app_offline.htm cannot be less than 512 bytes.
(2) IIS sites and process pools do not need to be stopped.
(3) only requests to the. aspx file are automatically forwarded to the app_offline.htm file, and if the. htm,. asp, etc. files are requested, they will not go to app_offline.htm
Use of app_offline.htm in ASP.