Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is there any way to enable keep-alive on IIS 7 in a hosted scenario?

I attempted to use the answer to this SO question Where (or how) is the keep-alive setting in web.config?.

I added the following after the </configSections> closing tag:

<system.applicationHost>
    <sites>
        <siteDefaults>
            <limits connectionTimeout="00:00:05" />
        </siteDefaults>
    </sites>
</system.applicationHost>

This is the error I get:

Unrecognized configuration section system.applicationHost.

If I follow this MSDN article: Walkthrough: Creating a Configuration File for Hosted Web Core and add:

<configuration>
 <configSections>
  <sectionGroup name="system.applicationHost"
    type="System.ApplicationHost.Configuration.SystemApplicationHostSectionGroup">
      <section name="sites"
              type="System.ApplicationHost.Configuration.SitesSection"
              allowDefinition="MachineOnly"
              overrideModeDefault="Deny" />
  </sectionGroup>

I get the following error:

It is an error to use a section registered as allowDefinition='MachineOnly' beyond machine.config.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.