Maximum request length exceeded.

来源:互联网 发布:怎么在淘宝买av种子 编辑:程序博客网 时间:2024/04/27 20:12
 

Server Error in '/tcms' Application.

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.

解决办法(来自网上):

If you are using IIS for hosting your application, then the default upload file size if 4MB. To increase it, please use this below section in your web.config -

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

Just to add - If you are using IIS7 then you need to use below lines instead of above -

 <system.webServer>    <security>       <requestFiltering>          <requestLimits maxAllowedContentLength="1048576" />       </requestFiltering>    </security>  </system.webServer> 

 

原创粉丝点击