Spotfire Web Player or Automation Services instance fail to start after upgrade to 11.5 with "Could not load type 'System.Runtime.InteropServices.OSPlatform'" exception

Spotfire Web Player or Automation Services instance fail to start after upgrade to 11.5 with "Could not load type 'System.Runtime.InteropServices.OSPlatform'" exception

book

Article ID: KB0072925

calendar_today

Updated On:

Products Versions
Spotfire Server 11.5 and higher

Description

After a new installation or upgrade from 11.4 or lower to Spotfire version 11.5 or higher, the following error is returned while trying to start the Spotfire Web Player or Automation Services instances and the services will not start:

"Status notified as FAILED. The service exited with error code -532462766. Recent Logs: Error: Error: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.InteropServices.OSPlatform' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Error: at Spotfire.Dxp.Worker.Utilities.ConsoleLogger.LogStartUp(String logMessage, LogLevels logLevel) Error: at Spotfire.Dxp.Worker.Host.Program.CreateProgramRunner() Error: at Spotfire.Dxp.Worker.Host.Program.Main(String[] args)"
 

Environment

OS: Windows

Resolution

The above error is generally caused due to having the incorrect .NET Framework version installed on the Node Manager machine. As of Spotfire version 11.5, Microsoft .NET Framework version 4.8 or higher is required. 

To resolve, check for Microsoft .NET Framework version on Node Manager machine:

image.png

If it is lower than Microsoft .NET Framework version 4.8 then download the 4.8 version and install it. Once successfully installed, if upgrading attempt the update of the Spotfire services again.

Notes: 
  • On Microsoft Windows Server 2012 (all variants), Microsoft .NET Framework version 3.5 must be enabled as well.
  • Microsoft .NET Framework requires Administrator rights to complete installation.

Issue/Introduction

This article explains the issue faced during installation or after upgrade of Spotfire Web Player or Automation Service.

Additional Information

Doc: Spotfire System Requirements > Spotfire Server, Web Player and Automation Services 

Doc: Upgrading Spotfire

Doc: Updating services