【问题标题】:SSRS Web Service URL Provides an Error (500)SSRS Web 服务 URL 提供错误 (500)
【发布时间】:2019-02-10 15:00:41
【问题描述】:

当我尝试访问 SSRS Web 服务 URL(例如 http://SERVERNAME:1234/ReportServer/)时,它为我提供了错误 500。但是,Web 门户 URL (http://SERVERNAME:1234/Reports/) 工作正常。它甚至为我提供了 SQL Server Reporting Services 的 UI。

到目前为止,我已经尝试重新安装 SSRS,更改端口、帐户和数据库,但都没有成功(Reporting Services 服务正在运行)。我真的没有想法,微软的文档对于这个特定问题很糟糕,因为它建议尝试修改网络服务帐户权限,这可以在添加 Windows 功能之一后完成(我可能会添加,只能在Windows 10 的企业版)。

有没有人遇到过这个问题或设法找到解决方法?

【问题讨论】:

  • 使用“Reporting Services 配置管理器”工具来验证和/或配置 Web 服务的 URL。

标签: reporting-services ssrs-2017


【解决方案1】:

SSRS 的实例有两个非常独立的 Web 应用程序。通常他们有这样的网址:

  1. http://ServerName/Reports
  2. http://ServerName/ReportServer

在您的情况下,似乎第一个配置并正常工作,第二个失败。 失败原因可以在 SSRS 实例文件夹中存储的日志文件中找到,例如:

D:\SQLData\MSRS13.MSSQLSERVER\Reporting Services\LogFiles

此路径可以不同,取决于在初始安装期间选择的实例目录。可以通过打开任务管理器找到ReportingServicesService.exe的文件位置找到:

然后,在 LogFiles 目录中打开最新的日志文件并检查类别为 ERROR 的消息,例如:

ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'RequestTypeList'. ---> System.Data.SqlClient.SqlException: Invalid object name 'dbo.FactHistoricTrend'.
Could not use view or function 'dbo.FactFlatSSRS_Trend' because of binding errors.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
   at Microsoft.ReportingServices.OnDemandProcessing.RuntimeLiveQueryExecutor.ExecuteReader(IJobContext jobContext, DataSourceErrorInspector errorInspector, String commandText)
   --- End of inner exception stack trace ---;

这样,你就知道你的 ReportServer web 服务出现 Error 500 的原因是什么

【讨论】:

    【解决方案2】:

    虽然我将 Alexander 的帖子标记为答案,因为它很好地说明了如何调试问题,但我将发布实际问题是权限 - 我必须为 NETWORK SERVICE 帐户提供 SSRS 根的 rwx 权限文件夹(在我的情况下,它是 E:\Program Files\Microsoft SQL Server Reporting Services;属性 -> 安全 -> 编辑...)。

    【讨论】:

      猜你喜欢
      • 2017-11-23
      • 2011-03-14
      • 1970-01-01
      • 2020-09-07
      • 2012-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-20
      相关资源
      最近更新 更多