Share via


无法在SQL 2008报表服务上安装报表扩展

我们是在卸载SQL 2005报表服务并安装SQL 2008报表服务后发现这个问题的。

我想根据Dynamics AX Installation Guide安装AX报表服务,并根据要求打了修复959494 和 957312。当我选择"报表扩展"角色时碰到如下错误:

"You must install SQL Server 2005 Reporting Services Service Pack 2 before installing the reporting extensions."

该问题发生的原因是您在卸载SQL 2005报表服务时,注册表中并非所有的键值都已清除。因此到最后AX安装程序不知道它是要安装SQL 2005还是SQL 2008报表服务。

要解决该问题,我做了以下步骤:

1.根据Process Monitor (https://technet.microsoft.com/en-us/sysinternals/bb896645.aspx ) 我们发现:在客户的环境中,reportingserviceswmi.dll的路径是HKCR\CLSID\{08377CC4-E2FF-4cdb-B643-DA8C618F7614}\InprocServer32\(Default), 键值是C:\Program Files\Microsoft SQL Server\90\Shared\reportingserviceswmi.dll

而在正常的环境中其键值是:C:\Program Files\Microsoft SQL Server\100\Shared\reportingserviceswmi.dll

我们进一步将每个键值从C:\Program Files\Microsoft SQL Server\90\Shared\reportingserviceswmi.dll改到C:\Program Files\Microsoft SQL Server\100\Shared\reportingserviceswmi.dll。 然而即使我们能找到reportingserviceswmi.dll,仍然无法安装AX报表扩展。

2.原因是 wmi实例在卸载SQL 2005报表服务后仍然存在。要解决它:

a. 运行命令wbemtest

b. 点击"连接"并连到"ROOT\Microsoft\SqlServer\ReportServer"(在命名空间文本框中输入此路径)

c. 连接上命名空间后,点击"查询"并输入"SELECT * from __namespace"。在记录窗口中会有一条数据(此服务器只有一个RS实例)

d. 在命名空间列表中您可以看到报表服务的所有实例,以及命名空间为'v9'

e. 选择命名空间v9并点击删除

f. 在命令行中导航到C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin

g. 运行命令行:MOFCOMP reportingservices.mof

完成以上步骤后,您就可以安装AX报表扩展了。

 

 

原文地址:

https://blogs.msdn.com/b/emeadaxsupport/archive/2010/12/06/reporting-extensions-installation-fails-to-install-on-sql-2008-reporting-services-after-applying-959494-and-957312.aspx