Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ApprenticeServerComponent error

22 REPLIES 22
Reply
Message 1 of 23
Anonymous
1794 Views, 22 Replies

ApprenticeServerComponent error

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();

 

22 REPLIES 22
Message 21 of 23
Anonymous
in reply to: adam.nagy

Hi Adam,

 

I have tested your code running the service under a local administrator user account:
untitled.JPG

 

And I get exactly the same error than before. I am not logged in windows with administrator.

 

What could be missing?

 

Thanks & Regards,

Rui

 

 

Message 22 of 23
Anonymous
in reply to: Anonymous

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

 

 

Message 23 of 23
adam.nagy
in reply to: Anonymous

What if you log in as an Administrator and then switch to a user. Does that make a difference?



Adam Nagy
Autodesk Platform Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report