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-

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

Leave a Reply