Saturday 10 December 2011

Maximum Request Length Exceeded

Configuring ASP.NET for Large File Uploads


"Maximum Request Length Exceeded" Problem arises when default setting of webconfig says you can not add any file more than 4mb or 3mb(or less)"




to increase the limit just add this line in your webconfig file under



<system.web>




<configuration>
  <system.web>
    <httpRuntime maxRequestLength ="2097151" enable="True" executiontimeout="45"/>
</system.web>
</configuration>


maxrequestlength means you are exceeding limit to...


100000=100MB


2000000=2GB

No comments:

Post a Comment

Print Only Grid View in ASP.net

ASP.net How to Print Only GridView < div id ="gridviewDiv" >   < asp:GridView ID ="gridViewToPri...