How to solve 0x80004002 error on Illustrator 2020/2021 COM with C#?
Hi!
I'm trying to connect my C# application to Illustrator 2020 (or 2021). I added a reference to the interop.illustrator DLL but no matter if I try:
Type oType = Type.GetTypeFromProgID("Illustrator.Application.24");
dynamic il = Activator.CreateInstance(oType);or
Illustrator.Application il = new Illustrator.Application();I always run into a 0x80004002 error (E_NOINTERFACE). In the past this could be solved by just running Illustrator as Administrator once to create/register the type library. However, this doesn't seem to work anymore. I tried registering the interop DLLs and scriptingsupport.aip manually, but that doesn't seem to work either. Did the COM interface become deprecated may be?
Any help here would be highly appreciated.
Thanks in advance,
Hans
