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

时间:2012-05-11 16:42:28

标签: sharepoint reporting-services

我在将某些报告中使用的自定义程序集部署到Sharepoint集成模式的SSRS服务器时遇到了一些麻烦。 According to Microsoft将程序集部署到SSRS的两种方法是:

  1. 将程序集复制到%ProgramFiles%\ Microsoft SQL Server \ MSRSnn.MSSQLSERVER \ Reporting Services \ ReportServer \ bin
  2. 将其安装到GAC
  3. 我已尝试过这两种方法,但在部署报告时仍然会出现此错误:

    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.
    

    程序集肯定在ReportServer \ bin中。它也在Microsoft Visual Studio 10.0 \ Common7 \ IDE \ PrivateAssemblies中,它在Visual Studio中的预览模式下工作。我还使用gacutil将其安装到GAC,但仍然没有找到它。

    我需要一些特殊的地方让程序集在Sharepoint中使用SSRS吗?我似乎无法找到任何有关此信息。还有其他原因我会得到那个错误吗?

1 个答案:

答案 0 :(得分:0)

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

C:\ Program Files \ Common Files \ microsoft共享\ Web服务器扩展\ 15 \ WebServices \ Reporting \ bin

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

C:\ Program Files \ Common Files \ microsoft共享\ Web服务器扩展\ 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:\ Program Files \ Common Files \ Microsoft共享\ Web服务器扩展\ 15 \ WebServices \ Reporting

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