I am getting the following error when using the ApprenticeServerComponent in C#:
"Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80040154."
The error appears in the following line:
ApprenticeServerComponent oApprentice = new ApprenticeServerComponent();
Hi Adam,
I have tested your code running the service under a local administrator user account:
And I get exactly the same error than before. I am not logged in windows with administrator.
What could be missing?
Thanks & Regards,
Rui
With your 2nd suggestion "Copy all the Inventor COM object entries from the HKCU (Current User) section of the registry to the HKLM (Local Machine) one" don't give anymore the error in line
ApprenticeServerComponent oApprentice = new ApprenticeServerComponent();
Now the error "Return argument has an invalid type." is in line
foreach (PropertySet lcl_prprSet in invDoc.PropertySets) {
This error only appears when from a Windows Service.
Rui
What if you log in as an Administrator and then switch to a user. Does that make a difference?