IIS应用程序初始化doAppInitAfterRestart

ran*_*ild 7 asp.net iis

我在IIS 7.5上安装了应用程序初始化模块,将apppool配置为AlwaysRunning和站点一起preloadEnabled.此模块适用于apppool restart.当我更改站点的web.config时,不发送来自模块的请求.我尝试过设置doAppInitAfterRestart,true但没有帮助.有没有办法在appdomain重启后以某种方式配置应用程序初始化以发送请求(例如web.config更改)?

cod*_*key 2

我在以下方面取得了一些有限的成功:

在应用程序部分更改为 后doAppInitAfterRestart,转到配置编辑器中的同一位置,然后单击旁边的省略号按钮。将会弹出一个窗口。单击添加链接,然后输入以下内容:truesystem.webServer/applicationInitialization...(Collection)

hostName: thehosturlofyourapp.com
initializationPage: /thepageyouwanttoloadonrestart.aspx
Run Code Online (Sandbox Code Playgroud)