OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-04-2015, 12:50
Craig Tucker Craig Tucker is offline
Member
 
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
  #2  
Old 09-04-2015, 11:26
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Thank You

Thank you Craig so much for sharing what you have found with the group.

-Shelby
Reply With Quote
Reply


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 14:56.


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