ASP.NET 2.0 - How to use app_offline.htm

2019-01-12 18:52发布

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?

7条回答
2楼-- · 2019-01-12 19:22

Make sure that app_offline.htm is in the root of the virtual directory or website in IIS.

查看更多
登录 后发表回答