Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
0
0
SE
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

Status
Not open for further replies.
Back
Top