COM Error
I ran across this error and wanted to share my findings to resolve...
The error: Retrieving the COM class factory for component with CLSID {12C10081-3D51-9CAB-4669-130BF27EB0CE} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
After extensive logging and debugging I found this line to be the culprit:
VGCore.StructExportOptions exportOptions = new VGCore.StructExportOptions();
What is interesting is the error comes after other successful processes such as
VGCore.Document openDocument = CorelDrawApplication.OpenDocument(documentToOpen, 1252);
This was running fine on my local machine and only received the error after a VS publish to Windows 2012 server with CorelDRAW X7 installed. The issue was that CorelDRAW installed under "The Interactive User" instead of "The Launching User" which meant my IUSER account could not run the application resulting in an unregistered com reference. Why it failed on VGCore.StructureExportOptions instead of earlier, I have no idea.
To RESOLVE, run DCOMCFNG.EXE, DCOM Config, CorelDRAW, Properties, change to "The Launching User".
Thanks much, Craig
|