IIS7 – The request filtering module is configured to deny a request that exceeds the request content length.

7 June, 2009

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.

Error Summary

HTTP Error 404.13 – Not Found

The request filtering module is configured to deny a request that exceeds the request content length.

Detailed Error Information

Module RequestFilteringModule
Notification BeginRequest
Handler PageHandlerFactory-ISAPI-2.0
Error Code 0x00000000
Requested URL http://localhost:80/basicwebplayer/UploadPackage.aspx
Physical Path C:workingslkSamplesBasicWebPlayerUploadPackage.aspx
Logon Method Not yet determined
Logon User Not yet determined

Most likely causes: 

  • Request filtering is configured on the Web server to deny the request because the content length exceeds the configured value.

Things you can try: 

  • Verifytheconfiguration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLengthsetting in the applicationhost.config or web.config 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: However, by default you cannot change this on a per application basis,and so need to modify the application.config file in%Windows%System32inetsrvconfig. The easiest way to do this is torun, in a command prompt running as administrator, %windir%system32inetsrvappcmd.exe unlock config -section:system.webServer/security/requestFiltering

Richard Willis

Written by

Copyright © 2024 SalamanderSoft Limited