Compatibility Issue with MilestoneSystems.VideoOS.Platform DLL in Niagara Framework

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

I see different potential issues, but the best is probably to check the MIP logs in [c:\ProgramData\Milestone\MIPSDK\](file:c:/ProgramData/Milestone/MIPSDK/) and if that does not tell you anything, run your application from the debugger and see whether the exception can give you more details.

Some guesses on the issue:

  • VideoOS.Platform.SDK is 4.7.2, so if you dll is 4.7 and referring the SDK dll that will most likely cause trouble
  • Depending on what you are using in VideoOS.Platform.SDK it is very likely that you need more dll’s than the 3 you are listing. An easy test of this is to include all the dll’s included in the NuGet package and see whether it solves the issue. If it does you can then try to further investigate what specifically is needed.