How to to fix Unhandled exception: System.TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.Portal.Services.TelemetryService'

Sphiwe Luthuli 0 Reputation points
2023-12-12T16:45:46.49+00:00

Good day,

Users cannot access the SSRS report through the portal, this happened after the servers went offline due a UPS. Any way, When trying to access the http://servername/reports site, the RSPortal....log files has the following entry each time. I have tried everything short of an uninstalling and reinstalling SSRS. We are using version 14.0.600.1763. QA server with the same config is working perfectly fine after I restarted up the SSRS service and IIS.

<Header>
  <Product>Microsoft SQL Server Reporting Services Version 14.0.600.1763</Product>
  <Locale>en-US</Locale>
  <TimeZone>South Africa Standard Time</TimeZone>
  <Path>C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\LogFiles\RSPortal_2023_12_12_18_07_42.log</Path>
  <SystemName>SERVERNAME</SystemName>
  <OSName>Microsoft Windows NT 6.2.9200.0</OSName>
  <OSVersion>6.2.9200.0</OSVersion>
</Header>
RSPortal!reportserverwebapp!RSPortal.exe!1!12/12/2023-18:07:43:: i INFO: Starting ReportServerWebApp
RSPortal!reportserverwebapp!RSPortal.exe!1!12/12/2023-18:07:43:: i INFO: Working directory : C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\Portal
RSPortal!reportserverwebapp!RSPortal.exe!1!12/12/2023-18:07:43:: i INFO: Report Server url: http://SERVERNAME/ReportServer
RSPortal!reportserverwebapp!RSPortal.exe!1!12/12/2023-18:07:43:: i INFO: Report Server Web App virtual root: /Reports
RSPortal!reportserverwebapp!RSPortal.exe!1!12/12/2023-18:07:43:: i INFO: Web app url: http://+:80/Reports/
RSPortal!reportserverwebapp!RSPortal.exe!1!12/12/2023-18:07:43:: i INFO: Authentication scheme(s): Ntlm
RSPortal!reportserverwebapp!RSPortal.exe!1!12/12/2023-18:07:43:: e ERROR: Unhandled exception: System.TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.Portal.Services.TelemetryService' threw an exception. ---> System.Management.ManagementException: Invalid class 
   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
   at Microsoft.ReportingServices.Portal.Services.TelemetryService.GetNumberOfProcessors()
   at Microsoft.ReportingServices.Portal.Services.TelemetryService..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.Portal.Services.TelemetryService..ctor(ITelemetryConfigurationFactory factory, IPortalConfigurationManager configManager, ISystemService systemService)
   at Microsoft.ReportingServices.Portal.WebHost.Owin.PortalPipeline.Create(IAppBuilder appBuilder, IPortalConfigurationManager portalConfigurationManager, ILogger logger)
   at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
   at Microsoft.ReportingServices.Portal.WebHost.Services.Impl.WebAppWrapper.Start(StartOptions options, IPortalConfigurationManager rsConfigManager, ILogger logger)
   at Microsoft.ReportingServices.Portal.WebHost.Services.Impl.WebAppServiceController.Start()
   at Microsoft.ReportingServices.Portal.WebHost.Program.Run()
   at Microsoft.ReportingServices.Portal.WebHost.Program.Main(String[] args).
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,063 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-12-13T09:36:08.2666667+00:00

    Hi @Sphiwe Luthuli

    I found this document about TypeInitializationException for you, maybe you can use it as a reference:https://learn.microsoft.com/en-us/dotnet/api/system.typeinitializationexception?view=net-8.0.

    Best regards,

    Aniya

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.