【发布时间】:2014-12-08 20:09:06
【问题描述】:
仅在 ie8 中,我收到“错误引发上传完成事件并开始新上传”。我已经在互联网上搜索了几天的解决方案,但无济于事。下面是我的 web.config 文件。根据其他帖子,我已将 AjaxFileUploadHandler 添加到 System.Web 和 System.Webservice,并添加了 preCondition="integratedMode"。这对ie8不行,我必须支持。
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation targetFramework="4.5">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpRuntime targetFramework="4.5" maxRequestLength="1000000" executionTimeout="360"/>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true"/>
<httpHandlers>
<add verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/>
</httpHandlers>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="50000000"/>
</webServices>
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" preCondition="integratedMode"/>
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295"/>
</requestFiltering>
</security>
<httpProtocol>
<customHeaders>
<add name="Set-Cookie" value="BALANCEID=DARPDINAProduction_Internet.node1;domain=.cc.cnh.com;path=/;"/>
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
【问题讨论】:
标签: c# asp.net .net ajax ajaxcontroltoolkit