reporting-services - D365 本地报告服务器 Web 门户应用程序 500 内部错误
问题描述
我对 SSRS 门户网站有这个问题,它无法正常工作。我已经恢复了一些 AX 数据库并安装了 D365 的更新,但我还没有触及 SSRS 配置或数据库。我在 WebPortalApp 中收到此错误:
Microsoft.ReportingServices.Portal.WebHost!crypto!1!03/19/2019-12:47:09:: i INFO: Initializing crypto as user: NT AUTHORITY\SYSTEM
Microsoft.ReportingServices.Portal.WebHost!crypto!1!03/19/2019-12:47:09:: i INFO: Exporting public key
Microsoft.ReportingServices.Portal.WebHost!crypto!1!03/19/2019-12:47:09:: i INFO: Importing existing encryption key
Microsoft.ReportingServices.Portal.WebHost!reportserverwebapp!1!03/19/2019-12:47:09:: i INFO: Registering 300 : CsrfTokenValidationConfig
Microsoft.ReportingServices.Portal.WebHost!reportserverwebapp!1!03/19/2019-12:47:09:: i INFO: Registering 500 : WebApiOwinConfig
Microsoft.ReportingServices.Portal.WebHost!reportserverwebapp!1!03/19/2019-12:47:10:: i INFO: Registering 600 : ODataWebApiOwinConfig
Microsoft.ReportingServices.Portal.WebHost!reportserverwebapp!3!03/19/2019-12:50:46:: e ERROR: [fz2yv91e]: fe80::6907:f912:7536:48e2%8: GET - 0:00:00.0805311
Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Framework.Reports.AuthenticationExtension.GetUserInfo(IIdentity& userIdentity, IntPtr& userId)
at Microsoft.ReportingServices.Portal.WebHost.Services.AuthenticationService.GetUserInfo(IRSRequestContext requestContext)
at Microsoft.ReportingServices.Portal.WebHost.Owin.CustomAuthenticationMiddleware.Invoke(IOwinContext context)
at Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware`1.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.ReportingServices.Portal.WebHost.Owin.RequestLoggingMiddleware.d__0.MoveNext()
/ReportServer 工作正常
解决方案
“C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\RSWebApp\bin”中缺少 ReportPVMConfiguration.xml。
我在“C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\ReportServer\bin”中找到它,然后将其复制过来。它存储数据签名、数据加密和报告服务证书指纹,因此如果没有该文件,任何帐户都无法针对门户应用进行身份验证。
推荐阅读
- r - 为什么 RobustLinearReg 比 Theil Sen Estimator 的 WRS 快得多?在哪里可以找到 WRS 的文档?
- python - 如图所示,我如何从长字典中获取特定数据
- vulkan - VkDeviceQueueCreateInfo::pQueuePriorities 可以为空吗?
- firebase - Firebase Firestore 和存储:每次读取数据时如何删除数据?
- scala - 如何使用范围编写高效的嵌套循环
- c++ - 是否可以通过字符串名称获取 MSBuild 属性?
- swiftui - Swift - 基于另一个变量返回不同值的函数
- regex - 后缀:正则表达式根据来自多个不匹配域名的地址进行阻止
- angular - Github Actions 使用 Firebase 为 Angular 项目部署空白页面
- lambda - 是否允许将参数移动到 Lambda 术语的右侧或左侧?