SSRS webpage error status code 500

2019-02-05 01:55发布

Have deployed numerous report parts which reference the same view however one of them is failing to run on the server, I think it may be due to having parameters in place with all sorts of characters in them. This is the error message I get:

Does anyone have any suggestions on how to get around this.

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, 6 Jun 2012 08:34:05 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: 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://mysqlserver/Reports/ScriptResource.axd?d=XwwW1tMwtFzdBQ9-6KriOz3q0Wkgg-xPb7EWT8HUhJXnf8sz46FbnRIo5guVNx1JC-QFapCZ-oQvTRpjjwXFYypY46ebyJBSDV8_0QBsVijeeYDDkZolFtJT35QxeGTEsgsKCpzrB-ZJiu83PMYBwOjrroQ1&t=ffffffffb868b5f4

1条回答
淡お忘
2楼-- · 2019-02-05 02:29

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.

查看更多
登录 后发表回答