Skip to content
June 27, 2013 / sarachalaca

Error in SSRS – System.Web.HttpException: Maximum request length exceeded

After finishing developing a new report on a new solution on reporting services (this case on SSRS 2008 R2) I receive the following error while trying to deploy the project:

System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. —> System.Web.HttpException: Maximum request length exceeded.    at System.Web.HttpRequest.GetEntireRawContent()    at System.Web.HttpRequest.get_InputStream()    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()    — End of inner exception stack trace —    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()    at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

This error occurs because exists a property MaxRequestLength under the httpRuntime element in the file web.config (<your SSRS folder>\Reporting Services\ReportServer) where its default value is 4096 KB (4 MB) and when the report size is higher than this value, Reporting Services can’t upload a report successfully.

This error can be solved by doing the following steps:
1. Go to
(Example-> C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer)

2. Open the File
web.config

3. On the file web.config change the line
<httpRuntime executionTimeout=”9000″/>
To (for example):
<httpRuntime executionTimeout=”9000″ maxRequestLength = “16384″ />
By default, the property maxRequestLength doesn’t exist in the config file and the default value is 4096 KB so you have to increase that value. In example above I am increasing the value to 16384 KB.

About these ads

4 Comments

Leave a Comment
  1. Mostafa / Dec 4 2013 5:37 am

    Nice and helpful advide

    • Mostafa / Dec 4 2013 5:38 am

      I mean to say nice and helpful advice !

  2. Charles Mulwa / Apr 23 2014 2:34 pm

    This worked, I must add that I had to restart SSRS services to for the changed configuration to be picked up. You could also get around the size of the rdl by putting most of your SQL logic into Stored Procedures such that all you have in the rdl are stored procedure calls especially in cases where you have thousands of lines of code.

  3. isabel marant shoes sale / Jul 8 2014 8:36 am

    thank you for share!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: