2011-06-22 863 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