My project has the same structure of “SensorMonitor” and I use Backgroundplugin. But the Init function of Bagroundplugin is never runned in the production server (Corporate 2016 10.0a) but in my test server all run correctly (Corporate 2017 R2 11.2a).
Some details:
In the Init() of Defintion.cs file i create the Bagroundplugin instance as in SensorMonitor.
private List<BackgroundPlugin> _backgroundPlugins;
public override void Init()
{
_backgroundPlugins = new List<BackgroundPlugin> { new SensorMonitorBackgroundplugin() };
}
In the SensorMonitorBackgroundplugin class i have:
public override List<VideoOS.Platform.EnvironmentType>TargetEnvironments
{
get
{
return new List<EnvironmentType>(new[] { EnvironmentType.Service });
}
}
Close() event of the Backgroundplugin runs correctly.
In the EventServer log i have this error:
2018-02-15 9:14:39 UTC+01:00 Error ESEnvironmentManager Error during BackgroundPlugin.Init() 'TestVMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' with message: Could not load type 'VideoOS.Platform.Messaging.MessageIdAndRelatedKindFilter' from assembly 'VideoOS.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89'.
Exception details:
System.TypeLoadException: Could not load type 'VideoOS.Platform.Messaging.MessageIdAndRelatedKindFilter' from assembly 'VideoOS.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89'.
at TestVMS.Background.SensorMonitorBackgroundplugin.Init()
at VideoOS.Event.Server.MIP.Environment.ESEnvironmentManager.StartAfterTokenAndConfigurationReady()
How do i can to resolve the issue?