2010-11-12 49 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中配置它。