2012-11-19 66 views
3

我想下面的添加到我的webconfig添加的System.Web applicationpool到web.config中導致500內部服務器錯誤

<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 

如何爲此添加節聲明?

+0

你是在綜合或經典模式下檢查應用程序?什麼版本的.NET? – MikeSmithDev

回答

4

我不相信你可以添加到一個web.config文件。它應該放在你的Aspnet.config文件中。

Web Settings Schema

+0

你是對的先生! – Prescient

0

我認爲你可以將其設置爲覆蓋公關。該部分

<system.webServer><httpRuntime> 

<system.webServer><serverRuntime> 

你可以到IIS和下配置編輯器中的網站

相關問題