Thursday, November 12, 2009

What is Maximum Request size for asp.net application?

The default max request size is 4MB (4096).
You can change a setting in your web.config to allow larger requests.
Here is the example:
   1: <configuration>
   2:        <system.web>

   3:            <httpRuntime  maxRequestLength="4096"/>
   4:        </system.web>

   5: </configuration>
This is default setting, we have to change this to the size that you want to allow user to request like 10MB, 20MB…

---
Happy Programming

No comments:

Post a Comment

Ideal SQL Query For Handling Error & Transcation in MS SQL

BEGIN TRY BEGIN TRAN --put queries here COMMIT; END TRY BEGIN CATCH IF @@TRANCOUNT>0 BEGIN SELECT @@ERROR,ERRO...