ASP.NET-4 IIS7.5 web.config serverRuntime element

后端 未结 2 721
无人及你
无人及你 2021-02-06 04:12

Whenever I add this line to my web.config in the system.webServer section:


With our without properties, IIS 7.5 just se

相关标签:
2条回答
  • 2021-02-06 04:35

    I had this exact problem and solved it by unlocking the serverRuntime section of the applicationHost config. Command to run at console:

    %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/serverRuntime
    
    0 讨论(0)
  • 2021-02-06 04:40

    So you are actually adding this to your web config?

    <location path="Default Web Site">
       <system.webServer>
          <serverRuntime enabled="true"
             frequentHitThreshold="1"
             frequentHitTimePeriod="00:00:20" />
       </system.webServer>
    </location>
    

    There are several important things to bear in mind...

    1. That you are running IIS7 in integrated mode, not classic mode.
    2. That you have the enabled="true" attribute set on serverRuntime

    Further reading on MSDN

    http://msdn.microsoft.com/en-us/library/aa347568%28VS.90%29.aspx

    0 讨论(0)
提交回复
热议问题