Error: Maximum request length exceeded | ASPMANTRA | Asp.Net,MVC,AngularJs,Jquery,Javascript,Sql Server AND WCF snippets and tutorial

Error: Maximum request length exceeded

In this post I am going to explain how to solve the error Maximum request length exceeded
Error: Maximum request length exceeded

Description:
Default maximum size to upload file is 4 MB (4096KB) and execution time is 110 seconds. This error occurs when we are uploading files larger than 4 MB.

Solution:
To solve this error add the below given line in web.config of project/website.

<system.web>
   <httpRuntime maxRequestLength="51200" executionTimeout="9999" />
</system.web>

MaxRequestLength: Maximum file upload size. Here file upload size is increases to 50 MB.
 1 MB = 1024 KB and 50*1024 = 51200


ExcutionTimeout : Maximum number of seconds taken by page to upload. If process is not completed in given seconds then it will be terminated.

  I hope you enjoyed this article. Please post you comment, query and feedback about this article. 

Post a Comment

[blogger]

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget