我在 Windows 8.1 中使用 IExplorer 11,在 Windows Server 2008 R2 中使用 IIS 和 ASP.NET 4.6.1。
我的 ASP.NET 应用程序是WebForms并使用UpdatePanels。
我有处理程序配置:
<httpHandlers>
<remove path="*.asmx" verb="*" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
和system.webServer.handlers:
<remove name="ScriptResource" />
<add name="ScriptResource"
verb="GET,HEAD" path="ScriptResource.axd"
preCondition="integratedMode"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
现在,我尝试通过 HTTPS 访问我的 Web 应用程序。但是我现在得到一个错误,之前没有,另一个旧的测试是正确的。
我在控制台中收到错误(IE 中的开发人员 F12):
Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING
控制台中的完整消息:
加载资源失败:net::ERR_INCOMPLETE_CHUNKED_ENCODING
ScriptResource.axd?d=JdegD_7PUJVmXULFjUEnn8-WKsu7dMZfODGKttl…:5 POST https://myHostname.company.es/v2/Access/Login.aspx?ReturnUrl=%2fv2%2f net::ERR_INCOMPLETE_CHUNKED_ENCODING
Sys.Net.XMLHttpExecutor.executeRequest @ ScriptResource.axd?d=JdegD_7PUJVmXULFjUEnn8-WKsu7dMZfODGKttl…:5
Sys.Net._WebRequestManager.executeRequest@ScriptResource.axd?d=JdegD_7PUJVmXULFjUEnn8-WKsu7dMZfODGKttl…:5
Sys.Net.WebRequest.invoke @ ScriptResource.axd?d=JdegD_7PUJVmXULFjUEnn8-WKsu7dMZfODGKttl…:5
Sys.WebForms.PageRequestManager._onFormSubmit @ ScriptResource.axd?d=xK_C6ZiWnJAwbFmxycomhSoVuG7wQBL347wu7B8vRv4lZ-am5E4rxJ-GZ-gWm03a7M6T4lFWxdjOei…:5
(匿名函数)@ScriptResource.axd?d=JdegD_7PUJVmXULFjUEnn8-WKsu7dMZfODGKttl…:5b
我尝试使用
scriptResourceHandler enableCompression="false" enableCaching="true"
<system.web.extensions>
<scripting>
<!-- Test: Error net::ERR_INCOMPLETE_CHUNKED_ENCODING -->
<scriptResourceHandler enableCompression="false" enableCaching="true" />
</scripting>
</system.web.extensions>
我尝试禁用压缩:
<!-- DISABLED GZIP
Test: Error net::ERR_INCOMPLETE_CHUNKED_ENCODING
<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="true"/>
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" sendCacheHeaders="true" cacheControlHeader="max-age=31536000" dynamicCompressionDisableCpuUsage="90" staticCompressionDisableCpuUsage="90" dynamicCompressionEnableCpuUsage="0" staticCompressionEnableCpuUsage="0">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" doStaticCompression="true" doDynamicCompression="true" dynamicCompressionLevel="10" staticCompressionLevel="10"/>
<staticTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="application/x-javascript" enabled="true"/>
<add mimeType="application/json" enabled="true"/>
<add mimeType="application/json; charset=utf-8" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
</staticTypes>
<dynamicTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="message/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
<add mimeType="application/x-javascript" enabled="true"/>
<add mimeType="application/json" enabled="true"/>
<add mimeType="application/json; charset=utf-8" enabled="true"/>
<add mimeType="*/*" enabled="false"/>
</dynamicTypes>
</httpCompression>
-->
有什么建议么?如何对它进行良好的故障排除?
更新:我在 Chrome 中测试,我得到了同样的错误。
我看过 F12 控制台日志:
标头
缓存控制:无缓存
内容类型:application/x-www-form-urlencoded;charset=UTF-8 来源:http : //myhostname.company.es 引用者: http://myhostname.company.es/v2/Access/Login.aspx ?返回网址=%2fv2%2f
用户代理:Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
X-MicrosoftAjax:Delta=true
X-Requested-With:XMLHttpRequest
表格数据
... __ASYNCPOST:true
我在本地没有任何防病毒软件
问题可能是使用 UpdatePanels 在 Chrome 中的 Content-Length。我不知道。