Admin-Ahead Community

Windows => General Windows => Topic started by: sajugovind on February 08, 2014, 12:04:24 pm

Title: To increase ASP File upload Size - "maximum-request-length-exceeded"
Post by: sajugovind on February 08, 2014, 12:04:24 pm
Hi

Last week I had problem with my domain. I am getting this error when I am trying to upload a image or video in my site.

Code: [Select]
[b]"maximum-request-length-exceeded"[/b]
It was the error related to Max upload size and executionTime. Solution was simple....


To increase it, please use this below section in your web.config -

Code: [Select]
<configuration>
    <system.web>
        <httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
    </system.web>
</configuration>

For IIS7 and above, you also need to add the lines below:

Code: [Select]
<system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
   </security>
 </system.webServer>
Note: maxAllowedContentLength is measured in bytes while maxRequestLength is measured in kilobytes, which is why the values differ in this config example. (Both are equivalent to 1 GB.)

Cheerrsss !!!!!!!!!!!!!