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