Adding system.web applicationpool to web.config causes 500 internal server error

房东的猫 提交于 2019-12-10 15:06:10

问题


I'm trying to add the following to my webconfig

<system.web>
    <applicationPool maxConcurrentRequestsPerCPU="5000" maxConcurrentThreadsPerCPU="0" requestQueueLimit="5000"/>
</system.web>

However when I do so I get the following error.

The configuration section 'applicationPool' cannot be read because it is missing a section declaration 

How can I add a section declaration for this?


回答1:


I don't believe you can add that to a web.config file. It should go in your Aspnet.config file.

Web Settings Schema




回答2:


I think you can set it to override pr. app under the sections

<system.webServer><httpRuntime>

and

<system.webServer><serverRuntime>

You can go into the IIS and check at the site under Configuration editor



来源:https://stackoverflow.com/questions/13458779/adding-system-web-applicationpool-to-web-config-causes-500-internal-server-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!