reporting-services - SSRS Web 服务 URL 提供错误 (500)
问题描述
当我尝试访问 SSRS Web 服务 URL(例如http://SERVERNAME:1234/ReportServer/
)时,它为我提供了错误 500。但是,Web 门户 URL ( http://SERVERNAME:1234/Reports/
) 工作正常。它甚至为我提供了 SQL Server Reporting Services 的 UI。
到目前为止,我已经尝试重新安装 SSRS,更改端口、帐户和数据库,但都没有成功(Reporting Services 服务正在运行)。我真的没有想法,微软的文档对于这个特定问题很糟糕,因为它建议尝试修改 NETWORK SERVICE 帐户权限,这可以在添加 Windows 功能之一后完成(我可能会添加,只能在Windows 10 的企业版)。
有没有人遇到过这个问题或设法找到解决方法?
解决方案
SSRS 的实例有两个非常独立的 Web 应用程序。通常他们有这样的网址:
在您的情况下,似乎第一个配置并正常工作,第二个失败。 失败的原因可以在存储在 SSRS 实例文件夹中的日志文件中找到,例如:
D:\SQLData\ MSRS13.MSSQLSERVER \Reporting Services\LogFiles
此路径可能不同,具体取决于在初始安装期间选择的实例目录。可以通过打开任务管理器并发现ReportingServicesService.exe的文件位置来找到它:
然后,在 LogFiles 目录中打开最新的日志文件并检查带有 category 的消息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 服务出现错误 500 的原因是什么
推荐阅读
- c++ - 为 android 和 iOS 构建 OpenSSL CURL
- python - Python Tkinter OOP 继承
- javascript - 如何使与其他对象的表面相交的可见边缘?(THREE.js)
- docker - 容器初始化后,docker 映像中的文件复制到命名卷的速度有多快
- spring-boot - RabbitMQ Spring Boot AMQP - 使用并发线程
- wpf - WPF 日历控件不通过 InputBindings (MVVM) 监听 Enter 键
- angular - Angular - 我需要避免损坏组件
- botframework - 带有 Microsoft Office365/outlook 日历的聊天机器人
- sql - 使用两个表的 BETWEEN 子句在 oracle 中完成查询需要更多时间
- hive - 将参数传递给 HIVE 查询