Maximum Request Length Exceeded error

While deploying a report to SSRS, you might see the following error:

System.Web.HttpException: Maximum request length exceeded.

To avoid the error you need to increase the maximum request length as follows:

  1. Go to the //Microsoft SQL Server\MSRS<version>.MSSQLSERVER\Reporting Services\ReportServer\ folder.

    For example: //Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\

  2. Open the web.config file.

  3. Locate the <maxRequestLength> parameter in the file and increase the value to 8192.

  4. (Optional) If the <maxRequestLength> parameter is not available, add the following statement:

    <httpRuntime executionTimeout="9000" maxRequestLength="8192" />

  5. Save the file and restart the SQL Server and SSRS.

  6. Deploy the report.