Hi, we’re in a situation where we have to connect to Milestone in our web application but the client doesn’t want to use/run the Mobile Server. In order to do this, we stumbled upon this discontinued ActiveX plugin of Milestone and wanted to use the same. However, when we try to use the same, it says, “Object doesn’t support property or method ‘Init’” for imageViewer.Init()
Any help on this?
It would be best if you could use newer methods, it is the clear recommendation. Maybe you can inform the customer that Mobile Server and Mobile Client is a top solution which is constantly improved and optimized.
The old activeX requires Internet Explorer (a more modern browser will not work). Might this explain the issue? When you have an old MIP SDK 2018, try first if you can run the sample that uses activeX unmodified.
We’ve tried that approach but the customer has made it clear that they don’t want to run the Mobile Server.
The above error was thrown when we tried to run the activeX sample unmodified in Internet Explorer (Chrome, Edge, Firefox, etc didn’t even load the plugins). We wanted to try it first before trying to integrate with out solution. Any prerequisite step that we’re missing?
There is a handful of security settings that has to be right in order to get it running, please try to find all the relevant ones.
One thing that might be worth trying; try to register the activeX with regsvr32.
Tried to register the activeX with regsvr32. However, it doesn’t register them. Gives an error saying, “The module may not be compatible with the version of Windows that you’re running. Check if module is compatible with an x86 or x64 version of regsvr32.exe”
Tried it with both x86 as well as x64 version of regsvr32.exe and all other ways to register but couldn’t
It might not be necessary to register but I wonder why you experience this. What version is the Windows OS?
I had the Bin folder lying in a unusual place but I saw..
ImageViewerDotNet.dll gets registered without any problem in mine. However, I was trying to register the activeX files (.cab files) and ran into the above mentioned problem. When I try to run the provided sample in IE11, I get the same error, “Object doesn’t support property or method ‘Init’” for this line: imageViewer.Init();
P.S I’m trying this on Windows 10 Pro
So registering did work but did not improve the issue.
I strongly suspect the security settings does not allow the activeX to run.
Okay, if there’s any link/document which describes about the security settings to be enabled/disabled in order for the appilcation to run, please let me know.
Also, please let me know which all DLLs do I need to register, if that could help in any way. Thanks
Thanks, Bo. We tried the settings mentioned in that link too. But it didn’t help. Same error : “Object doesn’t support property or method ‘Init’” for this line: imageViewer.Init();
The sample goes from Not Initialized to Not Connected when using the Connect button. You must use Windows authentication users as the activeX does not support Basic users as implemented in XProtect c-code (XProtect Corporate, XProtect Expert and all Plus products).
I read a comment in the provided sample htm page that:
/* Following lines moved to next function, that is called when connect is pressed
//Image Viewer init
engineManager.Init();
imageViewer.Init(); \*/
So, the Initialize is happening only upon pressing the Connect button currently.
Also, we’re using Windows authentication itself currently.