LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Connect Timedout or auth error" when usging UltraVNC ActiveX object in LV 2010

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

0 Kudos
Message 1 of 4
(4,351 Views)

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.

Download All
0 Kudos
Message 2 of 4
(4,337 Views)

Sri-

 

It looks like you need to allow the ActiveX to run by default. IE Options need to be set to allow ActiveX control.

National Instruments
Applications Engineer
0 Kudos
Message 3 of 4
(4,316 Views)

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

 

 

Enabled:
  Allow previously unused ActiveX controls to run without prompt
  Allow Scriptlets
  Automatic prompting for ActiveX controls
  Binary and script behavior
  Display video and animation on a webpage that does not use external media player
  Download signed ActiveX controls (not secure)
  Download unsigned ActiveX controls
  Initialize and script ActiveX contrtols not marked as safe for scripting
  Only allow approved domains to use ActiveX without prompt
  Run ActiveX controls and plug-ins
  Script ActiveX controls marked safe for scripting*
  Scripting:
  Allow programmatic clipboard access
  Allow status bar updates via script
 Allow websites to prompt for information using scripted windows
 Enable XSS Filter
 Scripting of java applets

 

 

0 Kudos
Message 4 of 4
(4,305 Views)