Dan Griffin's Blog
Comments on security, PKI, smart cards, cryptography, and entrepreneurship.
RDC COM Registration Error
July 25, 2007
Question
"When I try and run the sample on my Windows 2003 R2 machine I get this error. I installed the latest Windows SDK on my machine but I still get this same error. It fails on this line, or any other line dealing the IRdcLibrary.
IRdcLibrary rdcLibrary = (IRdcLibrary)new RdcLibrary();
ERROR:
{"Retrieving the COM class factory for component with CLSID {96236A85-9DBC-11DA-9E3F-0011114AE311} failed due to the following error: 80040154."}
[System.Runtime.InteropServices.COMException]: {"Retrieving the COM class factory for component with CLSID {96236A85-9DBC-11DA-9E3F-0011114AE311} failed due to the following error: 80040154."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "Retrieving the COM class factory for component with CLSID {96236A85-9DBC-11DA-9E3F-0011114AE311} failed due to the following error: 80040154."
Source: "Microsoft.RDC"
StackTrace: " at Microsoft.RDC.RdcServices.GetRdcVersion() in C:\\rdcsample\\RDC.NET\\Microsoft.RDC\\RdcServices.cs:line 293"
TargetSite: {Microsoft.RDC.RdcVersion GetRdcVersion()}"
Answer
"80040154 == ClassNotRegistered.
The RDC COM server is not properly installed.
- On any OS previous to Vista you must download and install the RDC MSI. If that has already been done, then from the command-line run “Regsvr32 MSRDC.dll”.
- On Vista RDC is always installed.
- On post-Vista it is a optional component and may be installed via the control panel [links below]."
http://download.microsoft.com/download/e/e/0/ee02f60b-c002-47f7-a92b-8d7a58561cd9/AMD64FRE/msrdcoob.exe
http://download.microsoft.com/download/e/e/0/ee02f60b-c002-47f7-a92b-8d7a58561cd9/IA64FRE/msrdcoob.exe
http://download.microsoft.com/download/e/e/0/ee02f60b-c002-47f7-a92b-8d7a58561cd9/X86FRE/msrdcoob.exe
2 Comments »
RSS feed for comments on this post. TrackBack URL
The link to .exe file containing the demo is broken. Could you please update it?
Thank you.
Comment by lauso — September 10, 2009 @ 12:25 am
Thanks. I reposted it here: http://www.jwsecure.com/files/RDC-SampleCode.zip
Comment by dan — October 1, 2009 @ 1:39 pm