What is the best way using the API to update the iProperties without have the Inventor installed?
I want have a service in a server (without Inventor) that in background will update some values of the iProperties.
It is possible do this with Apprentice? If yes, it is enought link to the dll "Autodesk.Inventor.Interop.dll" for doing this?
Thanks & Regards,
Rui
I am calling the ApprenticeServerComponent from an C# Windows Service and 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,
I think it's better to check below website (and many others in this forum) first...
http://modthemachine.typepad.com/my_weblog/2010/03/iproperties-without-inventor-apprentice.html
Regards,
Mucip:)
When I call the ApprenticeServerComponent from an C# WindowsFormsApplication works well.
If I call exactly the same ApprenticeServerComponent code from a C# WindowsService appears the error:
"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();
You may hit some restrictions when trying to run Apprentice from a Windows service. As you describe the situation, you should rather use a WCF service running on your server that will instanciate your Apprentice component and do the job, this is proven to work well.
You may use Node.js as well, as I was blogging about it there:
I hope it helps,
Philippe.
I have changed my code to call ApprenticeServerComponent from a webservice instead of the first approach of call ApprenticeServerComponent from a Windows Service.
But the problem is exactly the same, when webservice in IIS call the ApprenticeServerComponent I get exactly the same error. 😞
If I run webservice from VStudio works well, but when I publish it to IIS I get the same COM error.
What could I change in IIS to make it work?
Thanks & Regards,
Rui
Can't find what you're looking for? Ask the community or share your knowledge.