Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 10 - HTTP Error 413.1 - Request Entity Too Large

Tags:

iis

iis-10

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?

like image 275
user2370664 Avatar asked May 17 '26 10:05

user2370664


1 Answers

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.
like image 65
Theobald Du Avatar answered May 19 '26 01:05

Theobald Du



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!