Hi Team,
I am trying to integrate the MilestoneSystems.VideoOS.Platform DLL (version 24.2.1) into my Niagara framework application, but I am encountering issues.
Environment Details
• .NET SDK Installed: 8.0.404
• Target Framework of DLL: .NETFramework,Version=v4.7 // while building the bridgeservice in MSVC
DLLs Used
We are using the following three DLLs:
1. VideoOS.Platform.SDK.dll (version 24.2.1)
2. VideoOS.Platform .dll (version 24.2.1)
3. Autofac.dll (version 8.1)
The previous versions of these DLLs were from 2020R2, which worked fine with Niagara.
Steps Taken
1. Followed NuGet steps to build and retrieve the required DLL files.
2. Verified that the DLL exists in the following location:
[C:\Users\[User]\.nuget\packages\milestonesystems.videoos.platform\24.2.1\lib\net47.](file:C:/Users/[User]/.nuget/packages/milestonesystems.videoos.platform/24.2.1/lib/net47.)
3. Integrated the DLLs into the Niagara application and attempted to load them.
Purpose of These DLLs
We use these DLLs to create an XProtect Bridge Service, which connects our Niagara station to the XProtect Management Server.
Current Issue
• I created a new Bridge Service by adding the latest DLL dependencies (24.2.1). However, during runtime, I receive the following error:
“The type initializer for ‘VideoOS.Platform.SDK.Environment’ threw an exception.”
The Niagara log indicates issues with initializing VideoOS.Platform.SDK.Environment.
Is there any other additional dependencies needed with 24.2.1 dlls?
Could you please help me identify the root cause or suggest steps to resolve this issue? Let me know if you need further information.
Thanks in advance!
Regards,
Retty,
Honeywell