Tuesday, October 30, 2012

Maximum Request Length Exceeded ASP.NET

If you get this error Maximum request length exceeded while i was trying to upload several files, or a single big size file. As default, max file upload size is 4MB.
We can easily have a solution by not touching our asp.net c# or VB source code.

Just add a single line of code in your Web.config file, and you are done.


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

No comments :

Post a Comment