views:

859

answers:

1

Hello, I'm trying to instantiate the RDP ActiveX control, but it fails in IE7 internet zone.

When I naviagate to the page, I see infobar with message "This website wants to run the following add-on: 'Terminal Services ActiveX Client' from 'Microsoft Corporation' If you trust...". I right click, choose Run ActiveX Control. Whant happens, I see popup saing 'fail' and infobar pops up again with the same message.

It works correctly within trusted sites or intranet zone. My setup is WinXP sp2, IE7, RDP - shell version 6.0 build 6000, control version 6.0.6000.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <meta name="ROBOTS" content="NOINDEX, NOFOLLOW, NOARCHIVE" />
 <meta http-equiv="X-UA-Compatible" content="IE=7" />

 <script type="text/javascript">
   <!--
 function detectRdp() {
  try
  {
   rdpClient = new ActiveXObject("MsRdp.MsRdp.5");
   return "detected";
  } catch (e) {
  }
  return "fail";
 }

 function test()
 {
  alert('rdp: '+ detectRdp());
 }
   // -->
 </script>
</head>
<body onload="alert(detectRdp());">
</body>
</html>
A: 

This is not an answer for your question but there is one thing that you should be aware of.

erdogany