[英]AjaxFileUpload error in ie8 only AjaxControlToolkit
In only ie8, I get "error raising upload complete event and start new upload". 仅在ie8中,出现“错误引发上传完成事件并开始新的上传”。 I have scoured the internet for a solution for days but to no avail.
我已经搜寻了几天的互联网解决方案,但无济于事。 Below is my web.config file.
以下是我的web.config文件。 Per other posts, I have added the AjaxFileUploadHandler to System.Web and System.Webservice, as well as added preCondition="integratedMode".
在其他帖子中,我将AjaxFileUploadHandler添加到System.Web和System.Webservice中,并添加了preCondition =“ integratedMode”。 This does not do it for ie8, which I must support.
我必须支持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>
The fix for this was to remove one little line in the AjaxControlToolkit source code: 解决此问题的方法是删除AjaxControlToolkit源代码中的一小行:
iframe.security = "restricted";
Keeping that line in there makes ie treat the iframe with the same level of security as a site in the user's "Restricted" list. 保持该行不变,即使iframe的安全级别与用户的“受限制”列表中的站点相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.