I get an error from this line :
VideoOS.Platform.SDK.Environment.Initialize();
Error:
Could not load type ‘Video.Platform.EventAndState.IEventAndStateSession’ from assembly ‘Video.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89’.
thanks,
If you use
VideoOS.Platform.SDK.Environment.Initialize();
you must be using the NuGet MilestoneSystems.VideoOS.Platform.SDK
Please make sure you do not have a mix of new and old versions of the dependent dlls.
If this does not lead you to a solution please elaborate, what do you do and what do you observe?
PS. You have posted the question under plugin integration, and in a plugin integration you should never use the SDK, you should use on the MilestoneSystems.VideoOS.Platform which underneath will use the environment (Smart Client, Management Client, Event Server), the SDK part is only for standalone. Might this be what causes the issue?
I have plugin integration and need to know the status of the cameras, this is how you write me to use the examples: StatusSessionConsole and StatusDemoConsole
When it comes to the StatusSessionConsole StatusDemoConsole etc. you can do something similar in a plugin, but you need to use the SOAP service wsdl to reference.
https://doc.developer.milestonesys.com/html/index.html?base=statushelp/index.html&tree=tree_3.html
(VideoOS.Platform.SDK.Proxy.Status2 which is used in the standalone sample is a generated proxy which you cannot use, so generate you own, use the wsdl.)
Please see this comment in the StatusDemoConsole sample source:
// RecorderStatusService.cs can be generated by “svcutil.exe http://:7563/RecorderStatusService/RecorderStatusService.asmx?wsdl”
// is the hostname of a computer with an XProtect Recording Server installed
// svcutil.exe can be found in a Microsoft Windows SDK