OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > General

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29-05-2012, 10:59
johndmeyer
Guest
 
Posts: n/a
Default CorelDRAW X3 C# ASP .NET COM class factory Factory Error

Hello,

I am writing a web application in C# and ASP .NET. I have added a reference to the the CorelDRAW X3 .tlb and am doing conversion of uploaded .cdr image files to .png and .pdf for display on the web.

This all works fairly well when the application runs in the VS debugger, but when I push the application out to a production webserver I get the following errors:

Retrieving the COM class factory for component with CLSID {4A110001-2109-4B5D-BC63-17AE8914E384} failed due to the following error: 80070005.

Retrieving the COM class factory for component with CLSID {4A110001-2109-4B5D-BC63-17AE8914E384} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

I granted permissions to the web user (IUSR) in IIS 7.5 using the DCOM Config tool in Component services and got it working for a bit on my development webserver, but then I made some changes and am having trouble again. I cannot seem to get this working on the production server which uses a newer version of plesk.

Does anyone have insight into how to troubleshoot this issue?

Thanks!
Reply With Quote
  #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
Reply

Tags
.net, asp, c#.net, clsid


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
Recentfiles.gms - Error in CorelDraw X4 gorgo2 Macros/Add-ons 3 13-04-2012 09:28
CorelDRAW 12 Fit Text To Frame Error Craig Tucker CorelDRAW/Corel DESIGNER VBA 1 18-02-2012 13:28
Macro for Class Names? inkmachine CorelDRAW/Corel DESIGNER VBA 1 16-01-2012 11:15
Importing CorelDraw.tlb error mnj CorelDRAW/Corel DESIGNER VBA 2 12-08-2005 00:45
CorelDraw 8 error in DLL file - help !!! cannot open!!! Anonymous General 4 31-10-2004 15:52


All times are GMT -5. The time now is 15:33.


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