2010-11-12 75 views
0

我使用fileuploader,我從FileUploader在asp.net MVC2

http://www.codeproject.com/KB/aspnet/Implementing_HTTP_File_Up.aspx

得到了它的代碼和它的做工精細,體積小的文件,但它顯示我吼叫文本,當我嘗試上傳大文件。我的文件大小可以是8-10 mb。:

The connection was reset 
The connection to the server was reset while the page was loading. 
    * The site could be temporarily unavailable or too busy. Try again in a few 
      moments. 
    * If you are unable to load any pages, check your computer's network 
      connection. 
    * If your computer or network is protected by a firewall or proxy, make sure 
      that Firefox is permitted to access the Web. 

請告訴我該怎麼辦。

回答

1

你可以嘗試增加在web.config中的最大請求長度:

<configuration> 
    <system.web> 
    <!-- The value is in KB --> 
    <httpRuntime maxRequestLength="4096" /> 
    </system.web> 
</configuration> 
+0

感謝您的回覆,我已經嘗試過並將其設置爲10000,因爲我的數據大小約爲8-10 mb。但仍然如此。沒提升。普雷茲建議我任何其他的事情。謝謝 – 2010-11-12 13:25:30

0

除了答案達林季米特洛夫給了,你可能還必須更改IIS設置爲您的Web應用程序。如果您使用Sharepoint,則需要在SCA中配置它。