Cannot Access to Milestone Server with SDK 2021 R2

I developped a .net client with MIP SDK 2021 R2. This client works well in many system but in one with a new server 2023 R2 doesn’t work and give an unusedexception3 error when I call Environment.Login Instruction. I tried using a new library but my application works only if I use it standalone but if I generate a dll user library the exception returns.

To connect I use this code:

Dim uri As Uri = New UriBuilder(“http://10.10.56.71”).Uri

Dim nc As NetworkCredential

nc = New NetworkCredential(“jbvss\mxxxx”, “Mxxxxx!”)

VideoOS.Platform.SDK.Environment.AddServer(False, uri, nc)

Try

  VideoOS.Platform.SDK.Environment.Login(uri)

  MsgBox("OK")

Catch __unusedException3__ As Exception

  VideoOS.Platform.SDK.Environment.RemoveServer(uri)

  MsgBox("ERROR -3")

End Try

Can the Smart Client running on the same PC login using the same user?

What is the exception you get? It could be a first step in understanding what you experience. (You could so a ToString.)

There might be additional information in the MIP SDK logs (“[C:\ProgramData\Milestone\MIPSDK\MIP[yyyymmdd].log](file:C:/ProgramData/Milestone/MIPSDK/MIP[yyyymmdd].log)”

We are not sure we understand what you mean by generating a dll user library. Please explain what you do and how it fails.

With Smart Client cameras can be seen with same user and same authentication mode.

The exception returned calling VideoOS.Platform.SDK.Environment.Login(uri)

is “__unusedException3”.

I developed a tool that dynamically loads the libraries of various CCTV systems including Milestone.

I created a specific dll for each system, the one for Milestone using the SDK you provided.

This dll works on all installed environments including where there is a server version 2023R2.

Only on an installation with the 2023R2 server doesn’t work because returns this exception.

I am sorry but we are still not sure about the exception. So, in order to understand the exception, can you please do __unusedException3.ToString() and show us the exception? Because the name of the exception doesn’t tell us what is going wrong.

Also, can you please provide MIP SDK logs? MIP SDK log’s path is here - “[C:\ProgramData\Milestone\MIPSDK\MIP[yyyymmdd].log](file:C:/ProgramData/Milestone/MIPSDK/MIP[yyyymmdd].log)”

Unfortunately I am not able to debug because the system is on board of a ship,

In this moment Milestone technicians are testing with a program that I provided them, if the problem is not resolved I will try to organize a debug session. Thanks