Today i am working on a module that upload video files into system and when i try to upload a file that size exceeds 30000000 Bytes which is around 28.6 MB it gives me Request filtering module is configured to deny a request that exceeds the request content length error.
The problem is IIS 7 or greater have default allowed value of 30000000 Byte.
Solution
To exceed this limit in web.config set maxAllowedContentLength property like this
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="104857600"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>
This will set this limit to 100 MB
The problem is IIS 7 or greater have default allowed value of 30000000 Byte.
Solution
To exceed this limit in web.config set maxAllowedContentLength property like this
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="104857600"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>
This will set this limit to 100 MB
