IIS7 – The request filtering module is configured to deny a request that exceeds the request content length.
While testing some SCORM content in the Basic Web Player which comes with SLK I came across this error when trying to upload a large file.
It’s actually a nicely detailed error message. The problem is that be default IIS7, certainly on Vista, blocks large files at the web server level as well at the application level as part of the request filtering chain. This overrides the maxRequestLength value in the applications web.config file.
To resolve this you need to add the following to your web.config file directly under your configuration node:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength=”2147483648″/>
</requestFiltering>
</security>
</system.webServer>
However, by default you cannot change this on a per application basis,and so need to modify the application.config file in%Windows%\System32\inetsrv\config. The easiest way to do this is torun, in a command prompt running as administrator,
%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/security/requestFiltering
Thanks for the cmd line. Was wondering why my local site moaned about the requestFiltering line in the web.config
Thanks guys…
Your blog will help me lot for uploading the file around 100MB.