You might encounter Maximum request length exceeded error when you try to upload large files or perform web requests that fetch large chunks of data.
This error commonly raised by IIS as the default upload file size or request size is only 4MB.
There are two settings in the web.config that determined the request length. The following settings will increase the request up to 100 MB.
This error commonly raised by IIS as the default upload file size or request size is only 4MB.
There are two settings in the web.config that determined the request length. The following settings will increase the request up to 100 MB.
<configuration>
<
system.web
>
httpRuntime maxRequestLength="102400" /
<
>
<
/system.web
>
<
/configuration
>
&
system.webServer
lt
;
>
&
security
lt
;
>
<
requestFiltering
>
<
requestLimits maxAllowedContentLength="104857600" /
>
<
/requestFiltering
>
<
/security
>
<
/system.webServer
>
Please note that
maxRequestLength is measured in Kilobytes
and
maxAllowedContentLength is measured in bytes.
Also note that this can be configured for the URL
that performs the file upload/ request.
e.g.
<
location path="Documents/Uploads"
>
<
system.web
>
<
httpRuntime maxRequestLength="
102400
" /
>
<
/system.web
>
<
system.webServer
>
<
security
>
<
requestFiltering
>
requestLimits maxAllowedContentLength="
<
" /
104857600
>
<
/requestFiltering
>
<
/security
>
<
/system.webServer
>
<
/location
>
Cheers,
Samitha
No comments:
Post a Comment