11-02-2010 08:33 AM
Hi all,
I am trying to use a VNC viewer activeX object (from: UltraVNC ActiveX Viewer) in Labview to start a remote desktop / VNC session. The example supplied along with the control is a HTML page with javascript invoking the object.
Initially, I tried using the object by directly inserting it into an ActiveX container, but it never worked. So, I altered the design and inserted a WebBrowser object in the ActiveX container and used the Navigate2 method to open the local .htm file (that contains the exact same code as shown in example, but with altered Server address to match my local condition). Yet, even this method fails. As soon as the control passes to the Browser:Navigate2 method, I get an error stating "Connect method failed as it timed out or authentication failure". Just to make sure there is no error with the html file itself, I opened the file in Internet Explorer and it works without issues, after first allowing the ActiveX to run (throws up a banner on top of the page saying "it is unsafe to run the activeX" (IE's security measure).
Did anyone use this before? I just want the VNC Viewer functionality in Labview, so any alternate suggestions are welcome too.
Regards,
Sri Ved
11-02-2010 11:07 AM
VI and HTML file(renamed to .txt) attached, if they help.
Note that if you run the .htm file (ofcourse, after changing the server to whatever is available) in Internet Explorer, it runs just fine.
11-03-2010 12:32 PM
Sri-
It looks like you need to allow the ActiveX to run by default. IE Options need to be set to allow ActiveX control.
11-03-2010 02:38 PM
Tested the solution, but did not work. Attached is the screen shot of the error, if it helps. Also, I ensured all the variables under ActiveX and Scripting are set to "Enable" in IE Security Settings (listed below) in both the Internet and Intranet categories. Is there something obvious that I am missing?
Regards,
Sri