2011-06-22 375 views
4

我已经开发了一个小型的asp.net MVC3应用程序,我已经将视频文件上传到应用程序服务器路径中。当我上传2MB视频文件时,它会被升级。但当上传50mb文件时显示错误。错误101(net :: ERR_CONNECTION_RESET):连接被重置

 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"/> 

我怎样才能解决这个请帮助我..

回答

6
<httpRuntime maxRequestLength="51200" executionTimeout="0"/> 

这里

executionTimeout="0" takes unlimited time 
maxRequestLength="51200" for 1mb=1024 so for 50mb=51200 
+0

嗨,感谢您给予回应,我已尝试没有执行时间在web.config它也显示错误.... –

+0

谢谢深这是工作正常谢谢你sooo..much –

+2

executionTimeout必须大于零 – jao

2

只是为了回答下一个家伙更完整:

的httpRuntime去在<system.web>

执行超时值0只适用于某些版本的IIS

相关问题