在同一台服务器配置2个Reporting Service实例分别连接到不同的AX2012 实例

1. 环境. server server 2012 + AX 2012 R2

2. 运行 server server 2012 安装向导安装一个新的实例RSTEST, 注意安装时必须指定实例名称: RSTEST

 安装完成后可以在 系统服务上看到有2个SQL Server Reporting Service 服务在运行,将执行账号改为 NT AUTHORITYNETWORK SERVICE

3. 启动 Reporting Service 配置管理工具,报表服务器实例选择 RSTEST,点连接

 

3.1 指定数据库服务器,"创建新的报表服务器数据库",

  服务器名称为ERPTSRV02,

  数据库名称ReportServerRSTEST

  临时数据库名称 ReportServerRSTESTTemp
       

3.2 指定虚目录: ReportServer_RSTEST

  http://ERPTSRV02/Reports_RSTEST

       http://ERPTSRV02/ReportServer_RSTEST

3.3  配置执行账户, 全部完成后,重启SSRS服务

4. 修改Reporting Service实例RSTEST的配置文件

  路径 C:Program FilesMicrosoft SQL ServerMSRS11.RSTESTReporting ServicesReportServer

   https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/modify-reporting-services-configuration-files

5. 为避免在执行报表的时候报 ‘AX_CompanyName’ 参数错误

    错误描述:

  The DefaultValue expression for the report parameter ‘AX_CompanyName’ contains an error: Request for the permission of type ‘System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed. (rsRuntimeErrorInExpression)

   提前将配置文件C:Program FilesMicrosoft SQL ServerMSRS11.INSTANCE_NAMEReporting ServicesReportServer ssrvpolicy.config 里的PermissionSetName 改为 FullTrust.

   

 6.  重启Reporting Service

 7.  创建AX配置文件

  7.1 打开Dynamics AX 2012 Configuration, 创建指向其他环境的配置,

  并导出为axc文件,文件名为:Microsoft.Dynamics.AX.ReportConfiguration.axc

       将Microsoft.Dynamics.AX.ReportConfiguration.axc 复制到 RSTEST的bin目录下:

  C:Program FilesMicrosoft SQL ServerMSRS11.RSTESTReporting ServicesReportServerin

  重启 RS

 8.  AX 中创建配置

  http://ERPTSRV02/Reports_RSTEST
       http://ERPTSRV02/ReportServer_RSTEST

     

 9. 管理员方式打开ax powershell  ,运行以下命令部署所有报表

10. 在http://ERPTSRV02/Reports_RSTEST下发现找不到报表数据源,手动创建之:DynamicsAXOLAP。
       

11. 重启 SSRS,重启AX, 完工!

  

原文地址:https://www.cnblogs.com/sxypeace/p/13898085.html