Adobe Illustrator 2021 Type Library requires v24.3 to be installed to work with Visual Studio
- November 5, 2020
- 0 replies
- 572 views
I am having trouble tracking down exactly what the issue is, but the only way I am able to successfully reference Illustrator in Visual Studio is to have both v25.0 and v24.3 of Illustrator installed on the machine. If I reference the Adobe Illustrator 2021 Type Library without the older version of Illustrator installed I am getting this error:
"Unable to cast COM object of type 'System.__ComObject' to interface type 'Illustrator.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{95CD20AA-AD72-11D3-B086-0010A4F5C335}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
Attached is a picture of the references to the type library - you can see I am only referencing 2021, but if I remove 2020 (v24.3) then I receive the error.
Hopefully Adobe is already aware of this issue and a fix is on the way, if not kindly advise what the correct way to reference these type libraries moving forward.
Thank you in advance!