【问题标题】:Adding system.web applicationpool to web.config causes 500 internal server error将 system.web 应用程序池添加到 web.config 会导致 500 内部服务器错误
【发布时间】:2012-11-19 17:11:56
【问题描述】:

我正在尝试将以下内容添加到我的 webconfig 中

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

但是,当我这样做时,会出现以下错误。

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

如何为此添加部分声明?

【问题讨论】:

  • 您处于集成模式还是经典模式?什么版本的 .NET?

标签: asp.net web-config iis-7.5


【解决方案1】:

我不相信您可以将其添加到 web.config 文件中。它应该在您的 Aspnet.config 文件中。

Web Settings Schema

【讨论】:

    【解决方案2】:

    我认为您可以将其设置为覆盖 pr。版块下的应用

    <system.webServer><httpRuntime>
    

    和

    <system.webServer><serverRuntime>
    

    您可以进入 IIS 并在配置编辑器下的站点检查

    【讨论】:

      猜你喜欢
      • 2012-03-29
      • 2015-11-25
      • 2014-06-12
      • 2023-03-15
      • 2018-06-06
      • 2013-07-14
      • 2020-07-16
      • 2013-08-11
      • 2014-04-14
      相关资源
      最近更新 更多