简体   繁体   English

在 .net 4.5 中的 web.config 中覆盖 Machine.config 的值

[英]Overriding values of Machine.config in web.config in .net 4.5

I am using .net 4.5 ASP.NET Web API application.我正在使用 .net 4.5 ASP.NET Web API 应用程序。 How can i overwrite following settings in web.config file.如何覆盖 web.config 文件中的以下设置。

•maxWorkerThreads
•minWorkerThreads
•maxIoThreads
•minFreeThreads
•minLocalRequestFreeThreads
•maxconnection
•executionTimeout

Checkout the documentation here:在此处查看文档:

https://docs.microsoft.com/en-us/previous-versions/ms178685(v=vs.140)#the-processmodel-element https://docs.microsoft.com/en-us/previous-versions/ms178685(v=vs.140)#the-processmodel-element

It states:它指出:

Thus, processModel settings can be placed only in the Machine.config file, and they cannot be overridden by settings in any Web.config file.因此,processModel 设置只能放置在 Machine.config 文件中,并且它们不能被任何 Web.config 文件中的设置覆盖。

Some of the settings you mentioned are part of this processModel and so cannot be modified via web.config.您提到的某些设置是此processModel一部分,因此无法通过 web.config 进行修改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM