ASP.NET - 413 request entity too large - Asked By Boopathiraja K on 19-Apr-12 11:23 AM

Hi All,

I have launched my asp application IIS 6.0 where I had faced the below issue.

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 413

I had some input controls and the grid in the screen to insert / update the data and upload the data. Have multiview for the entry and upload.

Hence in the page load, I had called the loadgrid() function to load data to the datagrid.

I figured out the problem is when the application server fetches data from the oracle database. If I commented the loadgrid() function, the page works well but it does not work if I used the loadgrid() function and throws the error and I can't able to navigate to the views.

Kindly suggest any solutions for the same.

Thanks in advance.
Suchit shah replied to Boopathiraja K on 19-Apr-12 12:00 PM
The status code 413 means that Request Entity Too Large.
The 413 status code indicates that the request was larger than the server is able to handle, either due to physical constraints or to settings. Usually, this occurs when a file is sent using the POST method from a form, and the file is larger than the maximum size allowed in the server settings.


Please try to set the maxRequestLength property to a larger value. For how, please refer to this: 
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx
Boopathiraja K replied to Suchit shah on 20-Apr-12 09:20 AM
Thank you for your suggestion Suchit Shah,

The problem has solved with the help of the below web site.

http://www.banmanpro.com/support2/File_Upload_limits.asp