
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We've built an Inventor Plugin which works under Inventor 2017. Now we want to migrate to Inventor 2021, which seems to work until we use Apprentice Server from the plugin. The exception we get when initializing Apprentice Server is:
System.ArgumentException: 'Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 80070057 The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).'
The exception is thrown at the following line:
var app = new ApprenticeServerComponent();
We made two test projects to see where and why to problem occurs. One project accesses Apprentice Server from a regular console app (so it is not an Inventor plugin) and one project is an Inventor plugin that accesses Apprentice Server. The former project works perfectly, the latter gets the exception shown above. Both projects are included in the attached zip.
What is going wrong and how can we solve this?
Solved! Go to Solution.