尝试连接到报表服务器时失败。请检查连接信息,并检查报表服务器版本是否兼容。

部署SQL Server 2005 Report Serviecs 时 打开http://172.18.191.21/Reports
出现"尝试连接到报表服务器时失败。请检查连接信息,并检查报表服务器版本是否兼容。" 错误
而 http://172.18.191.21/ReportServer 可以正确显示.

1 :看看虚拟目录中的ReportS是否有非法字符,
打开 :程序->sql server 2005->配置工具->Reporting Services Configuration
在 Report Server Vitural Directory中新建虚拟目录
在 Report Manager Vitural Directory中新建虚拟目录

 

2.RSWebApplication.config 配置文件的原因

打开C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager
找到RSWebApplication.config 配置文件编辑:
ReportServerUrl改成这样,ReportServerVirtualDirectory置空

  <ReportServerUrl>http://HostName/ReportServer</ReportServerUrl>
  
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>

 

刷新IIS, IISRESET

微软技术支持上说原因是:
出现此问题的原因报表服务器站点的报表管理器工具使用不正确的服务器 URL。 报表服务器网站的报表管理器工具搜索的 URL 是文件 RSWebApplication.config 文件中 ReportServerUrl 标记中指定的。 默认情况下, 如果将此标记保留为空,报表管理器工具使用"localhost"作为服务器 URL。
修改为
<ReportServerUrl>http://<FullyQualifiedURL>:<PortNumber>/<VirtualDirectoryOfReportServer></ReportServerUrl>
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>


http://support.microsoft.com/kb/922656/zh-cn
http://technet.microsoft.com/zh-cn/library/ms159261(SQL.90).aspx

posted on 2009-04-07 10:03  lwl0606  阅读(2737)  评论(0编辑  收藏  举报

导航

我要啦免费统计