View Single Post
  #2  
Old 08-04-2015, 12:43
Craig Tucker Craig Tucker is offline
Member
 
Join Date: Nov 2002
Posts: 73
Default COM Class Error

I ran across this same error and noticed this thread was not replied to with an answer so I wanted to share my findings.

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 is 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
Attached Images
 
Reply With Quote