简体   繁体   English

SQL Server 2012 Reporting Services的问题

[英]Issue with SQL Server 2012 Reporting Services

Preface: Installed SQL Server 2016 RC0 and installed and configured Reporting Services all fine, thoughts maybe on potential conflicts with existing SSRS instances? 前言:安装了SQL Server 2016 RC0并安装并配置了Reporting Services都很好,是否可能与现有SSRS实例发生潜在冲突?

Issue with SQL Server 2012 Reporting Services, every time I navigate through the configuration manager to either the Web Service URL or the Report Manager URL, I get the following errors: SQL Server 2012 Reporting Services出现问题,每次我在配置管理器中导航到Web服务URL或报表管理器URL时,都会出现以下错误:

Report Manager URL returns 报表管理器URL返回

HTTP 500 error HTTP 500错误

Console when opening the Report Manager URL returns 打开报表管理器URL时返回的控制台

SCRIPT16389: Unspecified error. SCRIPT16389:未指定的错误。

http_500.htm (1,1) http_500.htm(1,1)

HTML1524: Invalid HTML5 DOCTYPE. HTML1524:无效的HTML5 DOCTYPE。 Consider using the interoperable form !DOCTYPE html 考虑使用可互操作的表单!DOCTYPE html

.http_500.htm (1,1) .http_500.htm(1,1)

Web Service URL returns Web服务URL返回

The version of the report server database is either in a format that is not valid, or it cannot be read. 报表服务器数据库的版本格式无效或无法读取。 The found version is 'C.0.9.45'. 找到的版本是“ C.0.9.45”。 The expected version is '162'. 预期版本为“ 162”。 (rsInvalidReportServerDatabase) Get Online Help (rsInvalidReportServerDatabase)获取联机帮助

Console when opening the Web Service URL returns, 打开Web服务URL时返回控制台,

GET http://localhost:8085/ReportServer_MYREPORTS 500 (Server Error) GET http:// localhost:8085 / ReportServer_MYREPORTS 500(服务器错误)

To try and resolve this, i've already tried adding RSExecRole to RoleMembers under both ReportServer$MyReports and ReportServer$MyReportsTempDB. 为了尝试解决此问题,我已经尝试过在ReportServer $ MyReports和ReportServer $ MyReportsTempDB下的RoleMembers中添加RSExecRole。

Also tried recreating ReportServer database under the Config Manager, but get the following error. 还尝试在配置管理器下重新创建ReportServer数据库,但出现以下错误。

Generating Database Script - Error: 生成数据库脚本-错误:

Microsoft.ReportingServices.WmiProvider.WMIProviderException: An error occurred when attempting to connect to the report server remote procedure call (RPC) end point. Microsoft.ReportingServices.WmiProvider.WMIProviderException:尝试连接到报表服务器远程过程调用(RPC)端点时发生错误。

I can confirm that both RPC services, SSRS Services are running with no problems, and also restarted these services multiple times. 我可以确认RPC服务,SSRS服务都没有问题,并且还多次重新启动了这些服务。

I have realised that my ReportServer$MyReports is missing the DBUpgradeHistory table. 我已经意识到我的ReportServer $ MyReports缺少DBUpgradeHistory表。

Any thoughts? 有什么想法吗?

这将立即解决该问题:

delete from dbo.ServerUpgradeHistory where ServerVersion=[The wrong or upgraded version]

In my case, there was no "ServerUpgradeHistory" table. 就我而言,没有“ ServerUpgradeHistory”表。 I needed to install SSRS 2012 on a machine that already had SSRS 2016 to do regression testing for a client that doesn't want to upgrade their system. 我需要在已经具有SSRS 2016的计算机上安装SSRS 2012,以便为不想升级其系统的客户端进行回归测试。

What I discovered is that there are SharePoint settings that SSRS installs even if you don't install SharePoint or SharePoint Plugins on your box. 我发现,即使没有在盒子上安装SharePoint或SharePoint插件,SSRS也会安装SharePoint设置。

Here's what fixed the problem for me: 这是为我解决问题的原因:

  1. Navigate your File Explorer to C:\\Windows\\assembly\\GAC_MSIL\\ 将文件浏览器导航到C:\\ Windows \\ assembly \\ GAC_MSIL \\
    • Note there are many directories in here that have nothing to do with SSRS. 请注意,这里有许多与SSRS无关的目录。 We will just focus on seven directories that appear to be related to this problem. 我们仅关注与该问题有关的七个目录。
  2. Navigate to Policy.11.0.Microsoft.ReportingServices.Alerting 导航到Policy.11.0.Microsoft.ReportingServices.Alerting
  3. Enter the assembly directory. 输入程序集目录。 This is usually a series of digits followed by a hexadecimal identifier. 通常是一系列数字,后跟一个十六进制标识符。
    • EG 13.0.0.0__89845dcd8080cc91 EG 13.0.0.0__89845dcd8080cc91
    • This path will vary based on what is installed on the machine 该路径将根据计算机上安装的内容而有所不同
  4. Backup the config file in case you need to roll back changes 备份配置文件,以防您需要回滚更改
    • EG from a Command prompt: COPY *.config *.bak 从命令提示符处输入EG:COPY * .config * .bak
  5. Open the config file. 打开配置文件。
  6. Look for the text in the newVersion attribute of the bindingRedirect tag: 在bindingRedirect标记的newVersion属性中查找文本:
    • <bindingRedirect oldVersion="11.0.0.0" newVersion=" 13 .0.0.0"> <bindingRedirect oldVersion =“ 11.0.0.0” newVersion =“ 13 .0.0.0”>
  7. Modify this to use "11.0.0.0" 修改为使用“ 11.0.0.0”
    • <bindingRedirect oldVersion="11.0.0.0" newVersion=" 11 .0.0.0"> <bindingRedirect oldVersion =“ 11.0.0.0” newVersion =“ 11 .0.0.0”>
  8. Save your changes 保存更改
  9. Repeat steps 2 through 8 with the following subpaths: 使用以下子路径重复步骤2至8:
    • Policy.11.0.Microsoft.ReportingServices.SharePoint.Common Policy.11.0.Microsoft.ReportingServices.SharePoint.Common
    • Policy.11.0.Microsoft.ReportingServices.SharePoint.ObjectModel Policy.11.0.Microsoft.ReportingServices.SharePoint.ObjectModel
    • Policy.11.0.Microsoft.ReportingServices.SharePoint.Server Policy.11.0.Microsoft.ReportingServices.SharePoint.Server
    • Policy.11.0.Microsoft.ReportingServices.SharePoint.SharedService Policy.11.0.Microsoft.ReportingServices.SharePoint.SharedService
    • Policy.11.0.Microsoft.ReportingServices.SharePoint12.Server Policy.11.0.Microsoft.ReportingServices.SharePoint12.Server
    • Policy.11.0.Microsoft.ReportingServices.SharePoint14.Server Policy.11.0.Microsoft.ReportingServices.SharePoint14.Server
  10. Reboot your computer 重新启动电脑

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM