Error - 'Maximum request length exceeded' when exporting search or report output to Excel

 This article is suitable for an IT Adminstrator
Ref: 201404050959
Last Edited: March 5th, 2014


When exporting the output from a search or other report to Excel, an error is reported in the Triaster Browser Toolkit application. On a client PC, this is likely to be a generic error message, offering little other than the identity of the web application. On the Triaster server, a more detailed error message would be expected.

Server Error in '/Triaster Browser Toolkit 2011/Search' Application.

Maximum request length exceeded.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:
System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



If the problem is specific to one web application, this configuration change could be applied to just it. The example above identifies the 'Search' application, and indeed, this is the only context in which this error has been reported, at least to date. The solution described will use that application as its example, but it could equally apply to others. The 'maxRequestLength' attribute of the 'httpRuntime' node is increased from its default of 4 MB to 15 MB (the value is in KB). If this doesn't resolve the issue, it may need to be increased further.
  1. In Windows Explorer, navigate to:
  2. Open 'web.config' in Notepad (or preferred text editor).
  3. Search for '</system.web>' (the end of the 'system.web' section).
  4. Insert this line (assuming that 'system.web/httpRunTime' doesn't already exist):
    <httpRuntime maxRequestLength="15360" />
    above '</system.web>'.
  5. Save and close the file.


Need further help? Contact the Triaster Support team by e-mailing or by calling us on + 44 (0)870 402 1234.
Do you have any feedback or suggestions that you would like to share with Triaster? We would love to hear from you! Please e-mail