Follow by Email

Monday, August 12, 2013

[Resolved] Http Runtime maxRequestLength exceeded error

hi maxRequestLength  exceeded error can be resolved as below :

Such an error occur when the uploaded data exceeds the limit. Like if the limit is 4MB and file begin uploaded to the server is 5 MB then such an error will occur.

By default the Http Runtime maxRequestLength  is 4MB we can increase this size in the web.config file of the application.

Suppose we want to increase the limit to 8MB then in the web.config file do the following :

        <httpRuntime maxRequestLength="8192" />

MaxRequestLength Accept values as KiloBytes.