windows 更改 machine.config 中的值
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1430015/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Changing a value in the machine.config
提问by Guy
What is the effect of changing a value in the machine.config file? Will this trigger the equivalent of IISReset on the machine? If not, will a running application immediately pick up new values added to this file?
更改 machine.config 文件中的值有什么影响?这会在机器上触发相当于 IISReset 的吗?如果没有,正在运行的应用程序是否会立即获取添加到此文件中的新值?
回答by womp
Editing the machine.config will cause all AppDomains to recycle on the server. For all intents and purposes, it's the same as an IIS reset from an ASP.Net application's point of view. An IIS full reset does accomplish a bit more though.
编辑 machine.config 将导致所有 AppDomains 在服务器上回收。出于所有意图和目的,从 ASP.Net 应用程序的角度来看,它与 IIS 重置相同。不过,IIS 完全重置确实完成了更多工作。
Note that editing the web.config file for an application will only cause that application's AppDomain worker process to recycle, not the entire server.
请注意,编辑应用程序的 web.config 文件只会导致该应用程序的 AppDomain 工作进程回收,而不是整个服务器。
回答by BenS
Just wanted to say, there is one exception from the auto-value-pickup behaviour from MSDN: The IIS server does not have to be restarted for the changes to take effect unless the processModel section has been changed
只是想说,MSDN 的自动取值行为有一个例外: 除非 processModel 部分已更改,否则不必重新启动 IIS 服务器以使更改生效
BenS
本S