Claus on Code

A data dudes random musings about code, bugs, products, life etc.


Maximum request length exceeded

When I was trying to deploy a report to the report server today, I got the following error message:

There was an exception running the extensions specified in the config file. —> Maximum request length exceeded. 

First I was a bit surprised, because a report project doesn’t come with a config file.

I turned out, that it wasn’t a specific Report server error, but a common IIS error.

The IIS has a default configuration, which specifies, that it can only accept a specific amount of data pr. Request.

I guess I should have known that, since I did a lot of web programming to the IIS at my last job.

Of course there is an easy solution. Find the web.config to the report server. It is somewhere around here.  

C:\\Program Files\\Microsoft SQL Server\\MSSQL.2\\Reporting Services\\ReportServer

Open it, and change the line that says something like this: 

<httpRuntime executionTimeout = “9000” /> 

And change it to:

<httpRuntime executionTimeout = “9000” maxRequestLength=”500000″ />

This changes the request length to 5MB. Change the value to your needs.

Changing the web.config, should by default restart your webapp, but run an iisreset from your command line to be sure.

Problem solved!



One response to “Maximum request length exceeded”

  1. Great article! Did the trick.

Leave a Reply

Your email address will not be published. Required fields are marked *