app-offline.htm

Custom app_offline.htm file during publish

会有一股神秘感。 提交于 2019-11-26 18:13:50
问题 When I publish my ASP.NET MVC application it generates a app_offline.htm file to take the site offline while it updates the website and then deletes the file once the publish is successful. This is cool and I really like the idea, but I want to create my own custom app_offline.htm file that the publish action is aware of and put it somewhere where it doesn't effect my development site - i.e. it doesn't sit in the root of my development site rendering it offline all the time. EDIT: From the

ASP.NET 2.0 - How to use app_offline.htm

时间秒杀一切 提交于 2019-11-26 11:54:53
问题 I\'ve read about the app_offline.htm file which can be placed within the root of a .NET 2.0 application which will in essence shut down the application and disable any other pages from being requested. I\'ve placed the file in the root, and my site still loads. I went into default documents in IIS and set it to app_offline.htm and the site still loads (this might have been a caching issue though) Anyway, has anyone run into issues using this? Am I doing something wrong? 回答1: I have used the