To summarize all the answers in a single place:
<system.web>
<httpRuntime targetFramework="4.5.2" maxRequestLength="1048576"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
Rules:
- maxRequestLength (expressed in kb) value must match
maxAllowedContentLength (expressed in bytes).
- most of the time your system.web section may already contains an "httpRuntime". set your targetFramework to the version of your .net used.
Notes:
- default value for maxRequestLength is 4096 (4mb). max value is 2,147,483,647
- default value for maxAllowedContentLength is 30,000,000 (around 30mb). max value is 4,294,967,295
more info [MSDN][1]
[1]:
[To see links please register here]