加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net文件上载在加载页面时重置了与服务器的连接

发布时间:2020-12-16 07:18:53 所属栏目:asp.Net 来源:网络整理
导读:当我尝试上传32MB的文件时,firefox在页面上显示以下错误. “ 连接被重置. 页面加载时重置了与服务器的连接.“ 我试过了foll.方案 – 1.在 system.web中 httpRuntime maxRequestLength="2000000000" executionTimeout="999999"/ 2.在 system.webserver中 secu
当我尝试上传32MB的文件时,firefox在页面上显示以下错误.

“ 连接被重置.
页面加载时重置了与服务器的连接.“

我试过了foll.方案 –

1.在< system.web>中

<httpRuntime maxRequestLength="2000000000" executionTimeout="999999"/>

2.在< system.webserver>中

<security>
  <requestFiltering>
          <requestLimits maxAllowedContentLength="2000000000" />
  </requestFiltering>
 </security>

<compilation defaultLanguage="c#" debug="false" />

但仍然得到同样的错误.
我认为问题与“executionTimeout”有关.应用程序未为请求设置此超时.

解决方法

最后问题解决了……
我们需要在配置文件中保留两个标签.

<httpRuntime maxRequestLength="2000000000" executionTimeout="999999"/>

<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="2000000000" />
    </requestFiltering>
</security>

实际上我正在评论一行并用另一行进行测试.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读