If you are getting error in Asp.Net as “System.Web.HttpException: Maximum request length exceeded”
This type of error mostly occurred when we are using File Upload functionality.
Due to increase in content lenth of request from the
its dafult value then ASP.NET engine fires this error.
Solution:
-
Open web.config file and set “maxRequestLength”
key to more than the size of file.
The default size of “maxRequestLength”
is 4096 KB (4 MB).
Value must be specified in KB as below
<httpRuntime maxRequestLength="10240"></httpRuntime>
10240
means 10 MB. (10 x 1024) - You can increase this up to 4 GB.
No comments:
Post a Comment