在 SharePoint 集成模式下将自定义程序集部署到 SSRS



我在将某些报表中使用的自定义程序集部署到 SharePoint 集成模式下的 SSRS 服务器时遇到一些问题。根据Microsoft将程序集部署到 SSRS 的两种方法是:

  1. 将程序集复制到 %ProgramFiles%\Microsoft SQL Server\MSRSnn.MSSQLSERVER\Reporting Services\ReportServer\bin
  2. 将其安装到 GAC

我已经尝试了这两种方法,但在部署报告时仍然收到此错误:

Deploying report 'http://localhost:7000/shared documents/xxxxxx.rdl'.
Error rsProcessingError : Error while loading code module: ‘Xxxxxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxx’. Details: Could not load file or assembly 'Xxxxxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxx' or one of its dependencies. The system cannot find the file specified.

程序集肯定位于报表服务器\bin中。它也在Visual Studio 10.0\Common7\IDE\PrivateAssemblies Microsoft中,并且可以在Visual Studio的预览模式下工作。我也使用 gacutil 将其安装到 GAC 中,但仍然找不到。

是否有一些特殊的地方需要放置程序集以使其与 SharePoint 中的 SSRS 一起使用?我似乎找不到有关此的任何信息。还有其他原因会导致我收到该错误吗?

需要将自定义程序集复制到:

C:\Program Files\Common Files\Microsoft shared\Web Server Extensions\15\WebServices\Reporting\bin

需要更新的 rssrvpolicy.config 文件在这里:

C:\Program Files\Common Files\Microsoft Shared \Web Server Extensions\15\WebServices\Reporting

源:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3d76c2d9-09f1-4045-adf4-a78d32c1b113/ssrs-report-with-custom-assembly-error?forum=sqlreportingservices

来自Microsoft文档:

默认情况下,SharePoint 模式的安装目录如下所示:

C:\程序文件\通用文件\Microsoft共享\Web 服务器扩展\15\Web服务\报告

https://learn.microsoft.com/en-us/sql/reporting-services/report-server/reporting-services-configuration-files?view=sql-server-2014#bkmk_config_file_Summary_sharepoint_mode

最新更新