Monday, August 12, 2013

[Resolved] Asp.net 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 :

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="8192" />
    </system.web>
</configuration>


MaxRequestLength Accept values as KiloBytes.

No comments:

Post a Comment