Getting errors on "could not load type 'System.Runtime.Diagnostics.ITraceSourceStringProvider' from assembly 'System.ServiceModel.Internals"
search cancel

Getting errors on "could not load type 'System.Runtime.Diagnostics.ITraceSourceStringProvider' from assembly 'System.ServiceModel.Internals"

book

Article ID: 162286

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Customer updated his OS on the SMP Server. After doing so, some of our services will not start or multiple errors referring to:

"Could not load type 'System.Runtime.Diagnostics.ITraceSourceStringProvider' from assembly 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

are been displayed in the NS logs.

Note: This error has been also noticed on new installations, SIM failed during the configuration process:

Error 1:
error initializing engine service; retry in 15 seconds
Could not load type 'System.Runtime.Diagnostics.ITraceSourceStringProvider' from assembly 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   [System.TypeLoadException @ System.ServiceModel]
  
-----------------------------------------------------------------------------------------------------
Date: 8/21/2015 4:02:08 PM, Tick Count: 6815453 (01:53:35.4530000), Size: 3.47 KB
Process: EventEngine (1672), Thread ID: 27, Module: EventEngine.exe
Priority: 1, Source: EventEngine.EngineService.LogException


Error 2:
Failed to create remoting request service: name='AtrsHost', retry=[3 / 5]
Scheduling for next retry ...
System.TypeLoadException: Could not load type 'System.Runtime.Diagnostics.ITraceSourceStringProvider' from assembly 'System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
-----------------------------------------------------------------------------------------------------
Date: 8/21/2015 4:02:06 PM, Tick Count: 6813812 (01:53:33.8120000), Size: 1.92 KB
Process: AtrsHost (6132), Thread ID: 46, Module: AtrsHost.exe
Priority: 2, Source: RemotingRequestService

Error 3:
Error subscribing to PPA alerts
SNMPTrapListener.cpp(Line: 149)  PPA::SNMPTrapListener::RegisterForAlerts(): SNMP trap listener thread could not start listening.
   [Altiris.PluggableProtocols.PPAException @ ]
   at Altiris.PluggableProtocols.PAL.RegisterAlertCallback(IAlertCallback callback)
   at EventReceiver.PPAHandler.SubscribeToAlerts()

-----------------------------------------------------------------------------------------------------
Date: 8/21/2015 4:07:01 PM, Tick Count: 7108703 (01:58:28.7030000), Size: 1.52 KB
Process: EventReceiver (844), Thread ID: 5, Module: EventReceiver.exe
Priority: 1, Source: EventReceiver.PPAHandler.SubscribeToAlerts


Error 4:
<!DOCTYPE html>
<html>
    <head>
        <title>Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.</title>
        <meta name="viewport" content="width=device-width" />
        <style> .wolkenCSSdT .wolkenCSSAA          body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} .wolkenCSSdT .wolkenCSSAA          p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} .wolkenCSSdT .wolkenCSSAA          b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} .wolkenCSSdT .wolkenCSSAA          H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } .wolkenCSSdT .wolkenCSSAA          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } .wolkenCSSdT .wolkenCSSAA          pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .wolkenCSSdT .wolkenCSSAA          .marker {font-weight: bold; color: black;text-decoration: none;} .wolkenCSSdT .wolkenCSSAA          .version {color: gray;} .wolkenCSSdT .wolkenCSSAA          .error {margin-bottom: 10px;} .wolkenCSSdT .wolkenCSSAA          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } .wolkenCSSdT .wolkenCSSAA          @media screen and (max-width: 639px) {          pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } .wolkenCSSdT .wolkenCSSAA          } .wolkenCSSdT .wolkenCSSAA          @media screen and (max-width: 479px) {          pre { width: 280px; } .wolkenCSSdT .wolkenCSSAA          } </style>
    </head>

Environment

ITMS 8.x

Cause

From what we were able to find out, it is a .NET issue and not caused by our product.

Resolution

If you are running SMP 8.0 or higher then install .NET 4.6.2 or later