This article is a mirror article of machine translation, please click here to jump to the original article.

View: 29923|Reply: 1

[Web] Application Offline Files for IIS Deployment Update Sites (app_offline.htm)

[Copy link]
Posted on 5/21/2021 10:56:19 AM | | | |
ASP.NET Core modules use app offline files (app_offline.htm) to close apps.

If a file named "app_offline.htm" is detected in the root directory of the app, the ASP.NET Core module will attempt to close the app gracefully and stop processing incoming requests. If the app is still running after the number of seconds defined in the shutdownTimeLimit, the ASP.NET Core module will stop the running process.

When a app_offline.htm file exists, the ASP.NET Core module responds to the request by sending back the contents of the app_offline.htm file. After deleting the app_offline.htm file, the next request will launch the app.

When using the out-of-process hosting model, if there is an open connection, the app may not close immediately. For example, a WebSocket connection might delay the application shutdown.

Document Introduction:The hyperlink login is visible.

The principle of Web Deploy deployment update includes app_offline.htm, as follows:

Publish your project to a remote IIS server using VS 2019
https://www.itsvse.com/thread-9410-1-1.html
First, we create a new test site in IIS and access it through a browser, as shown in the figure below:



Create a new app_offline.htm file with the following command:

The renderings are as follows:



(End)




Previous:Promote the information and innovation industry of science and technology localization
Next:JS exports the file via GET POST download
Posted on 9/22/2021 8:58:42 PM |
Learn to learn。。。。。。
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com