ManagedPipelineHandler for an AJAX POST crashes if an IE9 user navigates away from a page while that call was in progress

后端 未结 2 857
余生分开走
余生分开走 2020-12-15 01:02

Scenario:

  • User is using IE9 (IE8/10 not affected).
  • User has an active session.
  • Page starts an AJAX POST (GET not affected) request to a contr
相关标签:
2条回答
  • 2020-12-15 01:16

    This appears to be a regression in ASP.NET 4.5. Our team is working on a patch, but as a temporary workaround try placing this line in Web.config (more info here):

    <system.webServer>
      <serverRuntime uploadReadAheadSize="0" />
    </system.webServer>
    

    Please let us know if this works for you!

    0 讨论(0)
  • 2020-12-15 01:16

    Levi's answer works great in IIS 7.5 or higher. But if you are running Server 2008 R1, the following command will also set the setting:

    c:\windows\system32\inetsrv\appcmd.exe set config "sitename" -section:system.webServer/serverRuntime /uploadReadAheadSize:"0" /commit:apphost 
    

    But, a better fix is to apply the hotfix from Microsoft which remedies the issue (#6 in the attached KB article)

    http://support.microsoft.com/kb/2828841/EN-US
    http://support.microsoft.com/kb/2828842/EN-US

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