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:
-
Go to the
//Microsoft SQL Server\MSRS<version>.MSSQLSERVER\Reporting Services\ReportServer\folder.For example:
//Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\ -
Open the
web.configfile. -
Locate the
<maxRequestLength>parameter in the file and increase the value to 8192. -
(Optional) If the
<maxRequestLength>parameter is not available, add the following statement:<httpRuntime executionTimeout="9000" maxRequestLength="8192" /> -
Save the file and restart the SQL Server and SSRS.
-
Deploy the report.