Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
WebExcelReporter throws "Maximum Request Length Exceeded"

Hi Team,

      The WebDataGrid Export to Excel functionality given by WebExcelReporter throws the following error of kind.

Maximum request length exceeded.   at System.Web.HttpRequest.GetEntireRawContent()     at System.Web.HttpRequest.FillInFormCollection()     at System.Web.HttpRequest.get_Form()     at System.Web.HttpRequest.get_HasForm()     at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)     at System.Web.UI.Page.DeterminePostBackMode()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any how, I have overcome the same by setting the maxrequestlength property of the httpRuntime to a higher value.

 <httpRuntime maxRequestLength="1048576" />

However, I would like to know why it caused the issue in my case even though my WebDataGrid has data much less than 4 MB (640 KB around), which is the default maximum request length used by IIS. In that case, it should not throw error ?



  • 49378

    Hello Sudharshan,

    Thank you for posting in our community.

    Is it possible to provide some additional information regarding the project configuration in your scenario as well as product version used in order to allow me to attempt to reproduce this issue and provide more feedback ? Any samples or code snippets would be greatly appreciated.

    Please do not hesitate to contact me with any updates or questions.