MissingEndpointException:尝试连接到报表服务器失败。
当我尝试连接生成报告时出现此错误 MissingEndpointException:尝试连接到报表服务器失败。检查您的连接信息以及报表服务器是否是兼容版本。
i get this error when i try connecting generating report
MissingEndpointException: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
另一个解决方案是确保您的报告服务正在运行。尝试重新启动服务。
Another solution, make sure your Reporting service is working. Try restarting the service.
扫描 C:\Program Files\Microsoft SQL Server\MSSQL.1\Reporting Services\LogFiles 中的日志文件并找到以下异常: Microsoft.SqlServer.ReportingServices2008.RSConnection+MissingEndpointException:尝试连接到报表服务器失败。检查您的连接信息以及报表服务器是否是兼容版本。 ---> System.Net.WebException:请求失败,HTTP 状态为 404:。
您可能已将 /reportserver/ 应用程序配置为无法通过 http://localhost/ 访问...尝试遵循以下操作:
1) 将 localhost 主机头添加到托管 /reportserver/ 的网站,并确保可以通过该路径访问该应用程序
2) 编辑文件 C:\Program Files\Microsoft SQL Server\MSSQL。 1\报告Services\ReportManager\RSWebApplication.config 并将 ReportServer 的完整 url 添加到 ReportServerUrl 标记中(无结尾/必要),并从 ReportServerVirtualDirectory 中删除该值(否则您会遇到令人讨厌的、不精确的异常)。然后您必须回收报告管理器使用的应用程序池,以便重新加载配置文件。
Scan the logfiles in C:\Program Files\Microsoft SQL Server\MSSQL.1\Reporting Services\LogFiles and find the following exception: Microsoft.SqlServer.ReportingServices2008.RSConnection+MissingEndpointException: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. ---> System.Net.WebException: The request failed with HTTP status 404:.
It might be possible that you have configured the /reportserver/ app to not be reachable via http://localhost/... Try following the below things:
1) add the localhost hostheader to the web-site which hosts the /reportserver/ and make sure the app is then reachable via that path
2) edit the file C:\Program Files\Microsoft SQL Server\MSSQL.1\Reporting Services\ReportManager\RSWebApplication.config and add the full url to the ReportServer into the ReportServerUrl tag (no ending / nessesary) AND remove the value from ReportServerVirtualDirectory (otherwise you get nasty, unprecise exceptions). THEN you must recycle the app-pool used by the Report-Manager so that config file is being reload.
我知道这篇文章是很久以前的事了,但我在这里发布了答案,以防其他人面临同样的问题。
我为解决此问题所做的是将 URL 从报表管理器 URL 更改为 Web 服务 URL。
点击此处了解更多详情
I know that this post was long time ago but I posted the answer here in case there's other people facing the same problem.
What I did to resolve this issue is change the URL from Report Manager URL to Web Service URL.
Click here for more details