Connect to camera.... Connection to camera Failed.

Hello!

I’m new to MIP.

I’m getting this message on the ImageViewerControl - the Initialize and Connect went fine without errors.

I’m getting this even on the SimpleVideoViewer from the milestone course.

I’m using SDK 2018 R2, but my server is 2018 R1.

Any help is appreciated.

Thanks!

My guess is that you get the same in the Smart Client and that would indicate the VMS in general has lost connection to camera or there is a communication issue. I think you will need to troubleshoot that the camera and recording server works as expected.

Hi,

Sorry, I forgot to mention it.

I can see the camera just fine on the client. I get the error only on the SDK ImageViewerControl.

I ran the SimpleVideoViewer. My experience is that I can make it work but there is one small thing:

The SimpleVideoViewer has a Post-build event command line and this uses CopyImageViewerActiveX.bat, this batch file has been renamed, please use CopyUIFiles.bat instead.

From what I found I must suspect that the error you see stems from have a wrong set of dlls. I hope you find that using the right files solves the issue.

I did exacly that! When I noticed the CopyImageViewerActiveX.bat is missing in 2018 R2 I used the UI one (it’ll be nice if the course can updated, as it took me some time to figure it out).

Let me just show you what I see.

This is the compile (The SimpleVideoViewer):

This is from the server (its night in our place):

This is from the C# (The SimpleVideoViewer):

Anything I did wrong there?

Thanks again!

It is difficult when it works for me and I cannot reproduce the issue. If you run the VideoViewer sample from the MIP SDK, do you see the same issue?

Try as an experiment to remove all the files, and then copy all the dll’s from the MIP SDK\bin folder..

One idea; make sure you build 64 bit (NOT 32 bit or any cpu).

I already did try copy all the DLLs and compile it as x64.

I get the same with the VideoPreview sample

MIP_ImageViewer_10

Edit: Same with both live and playback modes.

A quick edit - I contact milestone sale man in my area - we might have a licensing problem - he’s checking it out.

I hope that is it, let us know..

We reactivate the server - but still I get the same error on the viewer.

I’ve copied the samples to the servers - and they’re working just fine there! - the problem is when i’m trying to connect over our lan.

I’ve checked the windows defender firewall and it set to off.

Also, I’m able to connect to the server and choose a camera, the problem is only with the ImageViewerControl.

What can be the problem?

Update:

I install and run the client from my development machine and I get the same error with the following message:

===================================

Could not load type ‘VideoOS.Platform.Client.ActiveElementsOverlayRenderParameters’ from assembly ‘VideoOS.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89’. (ActiveElementsOverlay)

------------------------------

Program location

at ActiveElementsOverlay.Background.ActiveElementsOverlayBackgroundPlugin.NewImageViewerControlEvent(ImageViewerAddOn imageViewerAddOn)

at VideoOS.Platform.ClientControl.NewImageViewerControlHandler.Invoke(ImageViewerAddOn imageViewerAddOn)

at VideoOS.RemoteClient.Application.MIP.Manager.SCClientControl.ImageViewer_InitializationEvent(Object sender, EventArgs e)

What have I done wrong? I did reinstall the SDK several times on this machine…

Is there a way to fix it?

The last one is -

https://developer.milestonesys.com/s/article/XProtect-Smart-Client-cannot-load-your-MIP-plugin

The previous sounds like a routing/fire wall issue, where you have access to the Management Server but not the Recording Server.

It works!

First of all thank you for help with the DLL.

The problem was with the server IP - it had two IPs, one for current network and the other for an old network which is no longer in use.

From some reason, after connecting to the server - it ‘redirect’ the viewer with the other IP. So thats why it worked locally, but not over the network.

I removed the old IP and everything is working fine.

Thanks for all the help.

I hade the same situation. In my case my development machine DNS not resolve host name. I go to [C:\Windows\System32\drivers\etc](file:C:/Windows/System32/drivers/etc) end edit host file where i added server ip adress and PC name. After that all worked expectantly.

I hope someone can help this too.

Thank you. I also had the same problem. The above two solutions became a big solution for me.

In my case, the port number of the ip was different, and I modified the “hosts” file and logged in by setting the same IP address value as the recording server.

Thank you. Three years later, your opinions have been of great help to me now.