Question: I am trying to upload files that are 6mb in size.
The web config is set as follows:

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

```

I keep getting this error :
Maximum request length exceeded.

Is there something that I am missing?

Answer: 
In **machine.config** 4MB is set as default, but you can override it in you **web.config** file.

Try adding this:

```
<configuration>  
    <system.web>
       <httpRuntime executionTimeout="240" maxRequestLength="20480" />
    </system.web> 
</configuration>

```
Please set 'MaxRequestLength' property in httpRuntime section of web.config to a higher value. Please note that the unit for this property value is KB. The default is 4096 KB = 4 MB

<https://learn.microsoft.com/en-us/dotnet/api/system.web.configuration.httpruntimesection.maxrequestlength?view=netframework-4.8>