A little something about everything

internet marketing and website development made simple..

IIS 2012 R2 maxRequestLength and maxAllowedContentLength explained

maxRequestLength is in KB

  • unspecified default: 4096 or 4MB
  • Specifies the maximum content length of a request to be supported by ASP.NET
  • example usage for 50MB limit in a website project: edit web.config
<configuration>
	<system.web>
		<httpRuntime maxRequestLength="51200" />
	</system.web>
</configuration>

 

maxAllowedContentLength is in B

  • unspecified default: 30000000 or ~28.6MB
  • Specifies the maximum content length of a request to be supported by IIS
  • example usage for 50MB limit in a website project: edit web.config
<configuration>
	<system.webServer>
		<security>
			<requestFiltering>
				<requestLimits maxAllowedContentLength="51200000" />
			</requestFiltering>
		</security>
	</system.webServer>
</configuration>

 

 

Add comment

Loading