Prescient
Prescient

Reputation: 1061

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

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?

Upvotes: 9

Views: 8179

Answers (2)

Hulvej
Hulvej

Reputation: 4205

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

Upvotes: 0

Miguel-F
Miguel-F

Reputation: 13548

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

Web Settings Schema

Upvotes: 4

Related Questions