Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Marshal.GetActiveObject("CATIA.Application"); COMException: Invalid class string

Status
Not open for further replies.

Talou

Computer
May 14, 2019
17
Hello,

I made an automation that work fine on Windows 10.
When I put it on Windows 7 or Windows 2012. (they both have framework higher that 4.5.2 installed)
I get the following exception when doing Marshal.GetActiveObject("CATIA.Application");

Exception:
Unhandled Exception: System.Runtime.InteropServices.COMException: Invalid class
string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid
& clsid)
at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
at CleanHarness.Program.Main(String[] args)


Any of you have encounter this kind of problem? (Catia is running of course)

Thank you,

Talou;
 
Replies continue below

Recommended for you

This is a quite common problem. It means that CATIA object can't be created because of incorrect registry settings. Is your CATIA running remotely from a server? If you have a local installation, probably the only solution is to reinstall it.

Tesak
- Play Tetris in CATIA V5 drawing
 
Ok, Thank you Tesak. Will try a reinstallation.

T.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor