Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: To increase ASP File upload Size - "maximum-request-length-exceeded"  (Read 2638 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
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 !!!!!!!!!!!!!