而该网页加载asp.net文件上传到服务器连接被重置 [英] asp.net file upload The connection to the server was reset while the page was loading

查看:552
本文介绍了而该网页加载asp.net文件上传到服务器连接被重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图上传32MB的文件,Firefox是展示页面上下面的错误。

When I am trying to upload file of 32MB, firefox is showing following error on page.

连接被重置。
而页面加载了与服务器的连接被重置。

" The connection was reset. The connection to the server was reset while the page was loading."

我已经试过FOLL。解决方案 -

I have tried foll. solutions -

1。在<&的System.Web GT;

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

2。在&LT; system.webserver&GT;

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

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

但仍然得到同样的错误。
我认为问题是有关executionTimeout。应用程序不设置此超时请求。

but still getting same error. I think problem is related to "executionTimeout". Application is not setting this timeout for request.

推荐答案

终于解决了问题...
我们需要保持两个标签中的配置文件。

finally problem resolved... We need to keep both tags in config file. i.e.

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

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

其实我是在评论一行,并与其他测试。 :)

Actually I was commenting one line and testing with another. :)

这篇关于而该网页加载asp.net文件上传到服务器连接被重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆