title: C# Custom Remote Desktop Client using RDP 8.0
body: <p>I have searched MSDN forum for this, but it seems everyone(i think) suggests to revert to RDP 7.x (uninstall MS Update KB2592687).</p>
  
  <p>I have an custom Remote Desktop client written in C#/WPF,the Remote Desktop ActiveX control is hosted inside a  WindowsFormsHost control. 
  The app works well <strong>prior</strong> to update RDP 8.0 (MS Update KB2592687). If i uninstall the MS update(revert to RDP 7.1), the app works. </p>
  
  <p>My RDP Client is used to connect to Virtualbox VRDP (Virtualbox 4.2.x), no authentication needed(Null). With RDP 8.0 installed, the Windows Remote Desktop Client(mstsc.exe) connects just fine, with much better responsiveness(RDP 8.0 enhancements); but my custom RD Client is unable to connect. </p>
  
  <p>Upon further investigation, my custom RDP Client is not throwing any exceptions or firing the <strong>OnConnecting</strong> and <strong>OnLogonError</strong> or most of the other events.
  What's odd is, it is ONLY firing  these two events (in order)</p>
  
  <p><strong>OnAuthenticationWarningDisplayed</strong><br>
  <strong>OnAuthenticationWarningDismissed</strong></p>
  
  <p>I also tested with RawCap(<a href="http://www.netresec.com/?page=RawCap" rel="noreferrer">http://www.netresec.com/?page=RawCap</a>) to see if my custom RDP Client is sending packets to Virtualbox VRDP prior to those events. Surprisingly, it's not even sending packets. (MS RD Client - mstsc.exe works fine.)</p>
  
  <p>So it boils down to these events/method calls on my custom RDP Client, and unfortunately I'm stuck.</p>
  
  <p>(Code is shortened for brevity)  </p>
  
  <pre><code>    AxMSTSCLib.AxMsRdpClient8 rdp = new AxMSTSCLib.AxMsRdpClient8();
  
      rdp.OnAuthenticationWarningDisplayed+=new EventHandler(rdp_OnAuthenticationWarningDisplayed);
      rdp.OnAuthenticationWarningDismissed+=new EventHandler(rdp_OnAuthenticationWarningDismissed);
      rdp.Server = server;
      rdp.AdvancedSettings8.RDPPort = 5050;
  
  //No username/password since Virtualbox RDP authentication is set to *null*
  //MS RD Client connects just fine to Virtualbox RDP without username/password
  
      try
      { 
         rdp.Connect();
      }
      catch (Exception ex)
      {
      }
  </code></pre>
  
  <p>putting a breakpoint on <strong>OnAuthenticationWarningDisplayed</strong> and <strong>OnAuthenticationWarningDismissed</strong> confirms both events are fired after <strong>Connect()</strong> method.
  I suspect the ActiveX control, after the <strong>Connect()</strong> method is called, is trying to show a dialogbox(??); but i can't seem to figure out.</p>
  
  <p>Has anyone else done some custom client using RDP 8.0? What are the prerequisites to have it working(code). </p>
  
  <p>Many thanks! Would greatly appreciate it.</p>