File upload run time error – Maximum request length exceeded

If you are getting this error while uploading file on the server, add following configuration setting in web.config-

<configuration>
    <system.web>
          <httpRuntime maxRequestLength="102400" executionTimeout="1200" />
          <!-- 102400 in KB is 100 MB, 1200 is in seconds-->
    </system.web>
</configuration>
This entry was posted in ASP.NET, Knowledge Sharing. Bookmark the permalink.

Leave a Reply