ASP.NET 2.0 - How to use app_offline.htm

后端 未结 7 1505
温柔的废话
温柔的废话 2020-11-28 20:24

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 disa

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 21:23

    Make sure your app_offline.htm file is at least 512 bytes long. A zero-byte app_offline.htm will have no effect.

    UPDATE: Newer versions of ASP.NET/IIS may behave better than when I first wrote this.

    UPDATE 2: If you are using ASP.NET MVC, add the following to web.config:

    
    
        
            
        
    
    

提交回复
热议问题