iisiis-10

IIS 10 - HTTP Error 413.1 - Request Entity Too Large


I am having an issue posting a large file using IIS 10 and .Net. The error code i receive is from IIS:

HTTP Error 413.1 - Request Entity Too Large
The request filtering module is configured to deny a request that exceeds the request content length.

I found many solutions online that are not working. Here are the changes i have made to IIS. These changes were done under the default website which hosts the application where i'm having this issue. The changes made to the default website have propagated to all the sites contained within.

enter image description here

enter image description here

enter image description here

I have also set the uploadReadAheadSize to 2147483647:

enter image description here

The file i am attempting to upload is 97 MB. What am i missing?


Solution

  • Set the uploadReadAheadSize value in the configuration file, here are the steps:

    1. Select the site under Default Web Site
    2. Select Configuration Editor
    3. Within Section Dropdown, select "system.webServer/serverRuntime"
    4. Enter a higher value for "uploadReadAheadSize" such as 1048576 bytes. Default is 49152 bytes.