ASP.NET 2.0 - How to use app_offline.htm

后端 未结 7 1508
温柔的废话
温柔的废话 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:01

    I ran into an issue very similar to the original question that took me a little while to resolve.

    Just incase anyone else is working on an MVC application and finds their way into this thread, make sure that you have a wildcard mapping to the appropriate .Net aspnet_isapi.dll defined. As soon as I did this, my app_offline.htm started behaving as expected.


    IIS 6 Configuration Steps

    On IIS Application Properties, select virtual Directory tab.

    Under Application Settings, click the Configuration button.

    Under Wildcard application maps, click the Insert button.

    Enter C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll, click OK.

提交回复
热议问题