DisallowRotationOnConfigChange设置似乎不适用 [英] DisallowRotationOnConfigChange setting does not appear to apply
问题描述
我们对具有禁止回收的配置更改应用程序池设置为True IIS7运行ASP.NET应用程序。
We have a ASP.NET application running on iis7 with the application pool having "Disable Recycling for Configuration Changes" set to True.
当我们进行修改,以在web.config但是,应用程序池回收仍然在事件日志中所示:
When we make a modification to the web.config however, the app pool still recycles as indicated by the event log:
Event code: 1002
事件消息:应用程序正在关闭。原因:配置改变。
活动时间:2015年4月16日下午2时34分23秒
事件时间(UTC):2015年4月16日下午9时34分23秒
事件ID:36792e5493444e7893665e66e4a4415b
事件顺序:150
事件发生:1
事件详细信息code:50004
Event message: Application is shutting down. Reason: Configuration changed. Event time: 4/16/2015 2:34:23 PM Event time (UTC): 4/16/2015 9:34:23 PM Event ID: 36792e5493444e7893665e66e4a4415b Event sequence: 150 Event occurrence: 1 Event detail code: 50004
应用程序信息:
应用领域:/ LM / W3SVC / 1 / ROOT / edudemov9-15-130736932997750186
信任级别:完整
应用程序虚拟路径:/ edudemov9
应用程序路径:S:\\网站\\ edudemov9 \\网站\\
机器名称:TEHKYLE
Application information: Application domain: /LM/W3SVC/1/ROOT/edudemov9-15-130736932997750186 Trust level: Full Application Virtual Path: /edudemov9 Application Path: S:\Sites\edudemov9\site\ Machine name: TEHKYLE
进程信息:
进程ID:8820
进程名:w3wp.exe
帐户名:NT AUTHORITY \\ NETWORK SERVICE
Process information: Process ID: 8820 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE
是否有任何其他设置或功能将覆盖DisallowRotationOnConfigChange设置?
Is there any other setting or feature that would override the DisallowRotationOnConfigChange setting?
推荐答案
您可以在这里找到了答案:<一href=\"http://serverfault.com/questions/315652/iis7-5-$p$pvent-recycling-when-changing-default-document\">http://serverfault.com/questions/315652/iis7-5-$p$pvent-recycling-when-changing-default-document
You can find the answer here: http://serverfault.com/questions/315652/iis7-5-prevent-recycling-when-changing-default-document
disallowRotationOnConfigChange仅供而不是应用程序池设置web.config文件,所以即使施加disallowRotationOnConfigChange一个AppDomain回收仍会发生。有一个文件更改通知(FCN)更改注册表,可以prevent的web.config从导致一个AppDomain回收变化,但变化本身不会被拾起或者直到应用程序池手动回收......
"disallowRotationOnConfigChange is for app pool settings only and not for web.config, so an appdomain recycle still occurs even if disallowRotationOnConfigChange is applied. There is a File Change Notification (FCN) registry change that can prevent web.config changes from causing an appdomain recycle, but then the changes themselves won't be picked up either until the app pool is manually recycled..."
这篇关于DisallowRotationOnConfigChange设置似乎不适用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!