I'm having the seuinte error when trying to debug my application.
HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content size .
Check configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength setting in applicationhost.config
or web.config file.
My web.config
<system.webServer>
<modules>
<remove name="FormsAuthentication" />
<remove name="ApplicationInsightsWebTracking" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="31457280"/>
</requestFiltering>
</security> </system.webServer>
More Information:
This and a security feature . NOT Change a Less Than the scope of the change is fully understood. Fast You CAN configure IIS server to reject requests Whose content is greater than hum value specified . If the request content to Greater Than the set * Size ESSE error is returned. Required to Increase * Content size , modify the configuration configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength .