Sunday, July 28, 2013

webpage error status code 500

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)

Timestamp: Wed, 1 Jun 2013 08:34:05 UTC
rverErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 5
Char: 62099
Code: 0
URI: http://m

Message: Sys.WebForms.PageRequestManagerSeysqlserver/Reports/ScriptResource.axd?d=XwwW1tMwtFzdBQ9-6KriOz3q0Wkgg-xPb7EWT8HUhJXnf8sz46FbnRIo5guVNx1JC-QFapCZ-oQvTRpjjwXFYypY46ebyJBSDV8_0QBsVijeeYDDkZolFtJT35QxeGTEsgsKCpzrB-ZJiu83PMYBwOjrroQ1&t=ffffffffb868b5f4

This problem is being caused by SQL server stopping a report being run because the request length exceeds a certain amount.
The solution to this is as follows:

Locate the web.config files for the ReportManager & ReportServer.
These should be found somewhere like this:

C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Web.config

C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\Web.config

Once located you need to edit the web.config files for both and add the following bit of code:

<appSettings>
<add key="aspnet:IgnoreFormActionAttribute" value="true" />
<add key="aspnet:MaxHttpCollectionKeys" value="100000" />
</appSettings>

These app settings should be added between between /system.web and runtime nodes, so it should look something like the following:

</system.web>
< appSettings>
< add key="aspnet:IgnoreFormActionAttribute" value="true" />
< add key="aspnet:MaxHttpCollectionKeys" value="100000" />
< /appSettings>
< runtime>

NOTE: The ReportManager may already have an app settings node so you will only need to paste the two add key lines.
The ReportServer will more than likely require all 4 lines (including the open and close appsettings nodes.


No comments:

Post a Comment