HttpException (0x80004005): Maximum request length exceeded.

1

These days I have been developing couple of prototypes using ASP.Net. I love to use ASP.Net for quick prototypes. I am throwing some of the key issues I am facing. We connected our app to real database that has millions of rows. First thing we came across was request length exception.

HttpException (0x80004005): Maximum request length exceeded.

You may have this error in case of
– large data downloads through grids etc
– large file uploads, attachments etc

It is mostly to do with buffer used by IIS server to process request. The size can be increased by one of the parameter in web.config. as follows:

Remember the max allowed is 4GB, Which lot more than required. If that is not sufficient you may have to look into your application design.

<system.web>

<httpRuntime maxRequestLength=”102400″ />

</system.web>

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here