简体   繁体   中英

Overriding values of Machine.config in web.config in .net 4.5

I am using .net 4.5 ASP.NET Web API application. How can i overwrite following settings in web.config file.

•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

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.

Some of the settings you mentioned are part of this processModel and so cannot be modified via web.config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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