OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 08-04-2015, 12:50
Craig Tucker Craig Tucker is offline
Join Date: Nov 2002
Posts: 73
Default 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
Attached Images
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ccompile error in hidden module - error message katruax CorelDRAW/Corel DESIGNER VBA 5 05-10-2012 18:38

All times are GMT -5. The time now is 16:12.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com