2013-07-27 69 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

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