IIS Setting: Request Limits
The first setting is the IIS Request Limit settings which is installed as part of the Request Filtering IIS Module. IIS Request Filtering is an optional IIS feature, but it is a required install feature when you install ASP.NET in IIS so you can assume it will be installed if ASP.NET is enabled in IIS.
The following sets the max POST buffer size to 500 megs. The value is specified in bytes.
<configuration> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="500000000" /> </requestFiltering> </security> <system.webServer> </configuration>
ASP.NET uses the
httpRuntime element to control a number of runtime related features including the allowed inbound request length. The inbound data size is checked very early in the request cycle and makes a request fail immediately.
<configuration> <system.web> <httpRuntime maxRequestLength="500000000" executionTimeout="120" /> </system.web> <configuration>