SCOM 2019 Integration for EM error- Connection test failed: SCOM Event connector failed. System.TypeLoadException: Method 'GetCachedObject' in type..


Description

SCOM 2019 Integration for EM error- Connection test failed: SCOM Event connector failed. System.TypeLoadException: Method 'GetCachedObject' in type..


Exact error is:

Connection test failed: SCOM Event connector failed. System.TypeLoadException: Method 'GetCachedObject' in type 'Microsoft.EnterpriseManagement.MonitoringInstancesManagement' from assembly 'Microsoft.EnterpriseManagement.OperationsManager, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Microsoft.EnterpriseManagement.ConfigurationReaderHelper.ProcessComponent(String componentId, XPathNavigator componentNavigator, IDictionary`2 pendingComponents, IContainer container)
at Microsoft.EnterpriseManagement.ConfigurationReaderHelper.ReadComponents(XPathNavigator navi, IContainer container)
at Microsoft.EnterpriseManagement.ManagementGroup.InternalInitialize(EnterpriseManagementConnectionSettings connectionSettings, ManagementGroupInternal internals)
at Microsoft.EnterpriseManagement.ManagementGroupInternal.InstantiateManagementGroup(EnterpriseManagementGroup group)
at Microsoft.EnterpriseManagement.EnterpriseManagementGroupInternal.Initialize(SdkDataLayerProxyCore sdkDataLayerProxy, EnterpriseManagementConnectionSettings connectionSettings)
at Microsoft.EnterpriseManagement.EnterpriseManagementGroupInternal.Create[T](SdkDataLayerProxyCore sdkDataLayerProxy, EnterpriseManagementConnectionSettings connectionSettings)
at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.ConstructEnterpriseManagementGroupInternal[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore clientCallback)
at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.RetrieveEnterpriseManagementGroupInternal[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore callbackDispatcherService)
at Microsoft.EnterpriseManagement.Common.Internal.SdkDataLayerProxyCore.Connect[T,P](EnterpriseManagementConnectionSettings connectionSettings, ClientDataAccessCore callbackDispatcherService)
at Microsoft.EnterpriseManagement.ManagementGroup.InternalInitialize(EnterpriseManagementConnectionSettings connectionSettings, ManagementGroupInternal internals)
at SCOMClient.Program.Main(String[] args)



Cause

From the error message, we can see:

'Microsoft.EnterpriseManagement.MonitoringInstancesManagement' from assembly 'Microsoft.EnterpriseManagement.OperationsManager, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.

In the error message, we have Version=7.0.5000.0, this is SCOM 2012.

The target SCOM server of the connector is on SCOM 2019, which should be on version 10.19.N

The likely cause is that the dll files under <MID Install folder>/extlib is on wrong version.


Resolution

The dll files are generally uploaded via MID Server > JAR Files.

Please follow doc below to review and reupload the files:

Configure the SCOM connector instance