MaxRequestLength vs maxAllowedContentLength in IIS 7.5

maxAllowedContentLength should work on IIS 7+ servers, but apparently my server does not want to take this value into account when loading it (ASP.NET MVC 3 website). Now that I have included maxRequestLength in web.config, everything started working and the value has been applied. But everywhere everyone says that maxAllowedContentLength is correct.

Does anyone have an explanation for this behavior?

+5
source share
1 answer

Take a look at the link below - this explains the difference between the two. You will need to install both options if you intend to upload large files. Please note that you can also nest this parameter in a tag <location>so as not to apply the setting to the entire website (which I recommend).

Confuse required maxRequestLength and maxAllowedContentLength values

+4
source

All Articles