title: Building RDP into a C# app
body: <p>I'm currently trying to build RDP into an application that I've made. We constantly have to connect to many servers regularly and would like to eliminate the need for our employees to know the details to all the servers.</p>
  
  <p>I'm currently trying to use the example at: <a href="http://www.codeproject.com/KB/cs/RemoteDesktop_CSharpNET.aspx" rel="noreferrer">http://www.codeproject.com/KB/cs/RemoteDesktop_CSharpNET.aspx</a></p>
  
  <p>When using the above I receive the error below:</p>
  
  <blockquote>
    <p>Retrieving the COM class factory for component with CLSID
    {791FA017-2DE3-492E-ACC5-53C67A2B94D0} failed due to the following
    error: 80040154 Class not registered (Exception from HRESULT:
    0x80040154 (REGDB_E_CLASSNOTREG)).</p>
  </blockquote>
  
  <p>From this code:</p>
  
  <pre><code>MsRdpClient rdp1;
  rdp1 = new MSTSCLib.MsRdpClient();
  </code></pre>
  
  <p>Any help would be much appreciated, thanks.</p>