2013-07-27 72 views
0

当我上传约18的文件在一个时间的浏览器显示以下错误:Request.Files mvc asp.net可以处理多少个请求?

Maximum request length exceeded.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

回答

0

最大请求长度可以在web.config中进行设置。默认大小是4 mb。

<configuration> 
    <system.web> 
     <httpRuntime maxRequestLength="1048576" /> 
    </system.web> 
</configuration> 

检查此post了解更多详情。

+0

每个文件大小是否有限制? –