In. net, if you have compiled a website and uploaded it again, a prompt such as an application error will appear when you visit your website, can I set up a "website maintenance" prompt?
Of course!
-----
In Asp.net 2.0, if you want to copy the site, perform site maintenance, deployment, and perform a lot of modifications, you may have to stop your web application, in a friendly way, users are prompted, for example, what information such as "the website is being updated" is displayed in ASP. net, you can create a static HTM page file named app_offline.htm (case-insensitive), which is changed to the content you want to temporarily display and put it under the root directory of your application. In this way, any external requests will be immediately transferred to this page. At this time, your website can still be accessed, but your application cannot be accessed. In that case, you can avoid the trouble of updating many websites.
Of course, you can also use the ASP. NET configuration management tool under the website menu of vs.net 2005 to make your site offline.
The size of the app_offline.htm page must be greater than 512 bytes. In the words of Scott, the father of Asp.net"
Make sure the app_offline.htm file is large enough (512 bytes) to disable the IE "friendly HTTP errors" feature
------
However, when the occasional program is updated, which app_offline.htm is still occupying the occasional website? Dizzy, it is normal to delete this page... Khan... Is it a little unfriendly?
Why? I don't know...