Asp.net

將 system.web 應用程序池添加到 web.config 會導致 500 內部伺服器錯誤

  • March 23, 2016

我正在嘗試將以下內容添加到我的 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 

如何為此添加部分聲明?

我不相信您可以將其添加到 web.config 文件中。它應該在您的 Aspnet.config 文件中。

Web 設置架構

我認為您可以將其設置為覆蓋 pr。應用程序下的部分

&lt;system.webServer&gt;<httpRuntime>

&lt;system.webServer&gt;&lt;serverRuntime&gt;

您可以進入 IIS 並在配置編輯器下的站點檢查

引用自:https://stackoverflow.com/questions/13458779