我已经开发了一个小的asp.net MVC3应用程序,因为我已经将视频文件上传到应用程序服务器路径。当我上传2MB视频文件时它被上传。但是当它上传50mb文件时它显示的错误就像。 / p>
This webpage is not available
The webpage at http://localhost:1318/Campaign/Advertises might be temporarily down or it
may have moved permanently to a new web address.
Here are some suggestions:
Reload this web page later.
Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.
我在web.config文件中设置了执行时间和maxrequested长度。
<httpRuntime maxRequestLength="20480" executionTimeout="12000"/>
我如何解决这个问题请帮助我..
答案 0 :(得分:7)
<httpRuntime maxRequestLength="51200" executionTimeout="0"/>
下面
executionTimeout="0" takes unlimited time
maxRequestLength="51200" for 1mb=1024 so for 50mb=51200
答案 1 :(得分:2)
为了让下一个人的答案更加完整:
httpRuntime进入<system.web>
executionTimeout值为0仅适用于某些版本的IIS