The MaxRequestLength property specifies the limit for the buffering threshold of the input stream. For example, this limit can be used to prevent denial of service attacks that are caused by users who post large files to the server.
The default value is 4096 KB (4 MB).
Example: Set max size up to 64 MB in web.config
<httpRuntime
maxRequestLength="65536"
/>