Customer Service | Training | Contact Us
You are here: Home > User Forums > arcgis engine forums > Thread Replies

ArcGIS Engine Forums

ArcGIS Engine: ArcObjects .NET API forum

Retrieving the COM class factory component...   Stephen March Apr 13, 2007
Re: Retrieving the COM class factory compon...   Kirk Kuykendall Apr 13, 2007
Re: Retrieving the COM class factory compon...   Stephen March Apr 13, 2007
Re: Retrieving the COM class factory compon...   Jeffrey Burka Jun 26, 2007
Re: Retrieving the COM class factory compon...   cristi BJ Jun 26, 2007
Re: Retrieving the COM class factory compon...   Jeffrey Burka Jul 02, 2007
Re: Retrieving the COM class factory compon...   Derck Vonck Jul 09, 2007
Re: Retrieving the COM class factory compon...   bassem halawi Nov 22, 2007
Re: Retrieving the COM class factory compon...   Neelima Kapoor Sep 24, 2008
Re: Retrieving the COM class factory compon...   Nidhi Kumar Oct 30, 2008
Re: Retrieving the COM class factory compon...   Ahmed Salih Jun 20, 2009
Report Inappropriate Content • Top • Print • Reply    
Subject Retrieving the COM class factory component with CLSID {...} failed due to the following error: 80040154 
Author Stephen March 
Date Apr 13, 2007 
Message I'm trying to do a direct connection to the SDE from a desktop app and getting a "Retrieving the COM class factory component with CLSID {...} failed due to the following error: 80040154".

My developer machine is:

Vista x64 (patched fully)
ArcGIS Desktop 9.2 Service Pack 1
ArcGIS Server for the Microsoft .NET Framework 9.2 Service Pack 1.

The SDE server is v9.2 running on SQL Server 2005, everything is patched as well.

The desktop editor license is connected to a license manager on the network with enough floating licenses to not be concerned.

Any thoughts? It's the initial call to AoInitialize() that returns the error, before we can even check for a valid license.

Thanks in advance 
 
AoInitialize init = new AoInitializeClass();
  esriLicenseStatus license =  init.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcEditor);

            if (license != esriLicenseStatus.esriLicenseCheckedOut)
            {
                throw new Exception("Could not retrieve license");
            }
 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 80040 
Author Kirk Kuykendall 
Date Apr 13, 2007 
Message see http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=31074
 
  Kirk Kuykendall
AmberGIS Programming Services & Sales
web: http://www.ambergis.com
blog: http://ambergis.wordpress.com/
LinkedIn: http://www.linkedin.com/in/kirkkuykendall 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 80040 
Author Stephen March 
Date Apr 13, 2007 
Message While I appreciate the link back to a KB that I've read before (basically beating me with the support bible) it does not provide any insight into the matter.

I have things working in a web environment on Vista with no issues. I'm not looking for official ESRI support with this product (otherwise I would be contacting through official supported channels), I'm looking for a user community has anybody tried this and had any results?

Cheers
~Stephen 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author Jeffrey Burka 
Date Jun 26, 2007 
Message Have you checked to make sure your application is set for x86?

The ArcObjects COM components can't be loaded by a 64-bit .Net app and the default compilation of a new project is for "Any CPU." Check the Build tab under the project properties and set the platform target to x86.

 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author cristi BJ 
Date Jun 26, 2007 
Message How to make sure it is x86 in VStudo.net? I am using VB.net. Thank you. 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author Jeffrey Burka 
Date Jul 02, 2007 
Message Right click on the top icon in the Solution Explorer and select the Properties entry in the context menu. In the Properties page, select the Compile tab to the left, then clock the Advanced Compile Options button. This will bring up the Advanced Compiler Settings dialog. The last entry in the dialog is the Target CPU combobox, which defaults to the value AnyCPU. Change that to x86 and click OK.

This will solve the problems that manifest as an InnerException when you try to launch the app:

error number: "-2147221164"
message: "Retrieving the COM class factory for component with CLSID {E01BE902-CC85-4B13-A828-02E789E0DDA9} failed due to the following error: 80040154."

 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author Derck Vonck 
Date Jul 09, 2007 
Message Hi Jeffrey

Thank you very much for posting this. It really helped. Yeat another X64 gotcha.

Derck 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author bassem halawi 
Date Nov 22, 2007 
Message I had the same problem when installing my application on a new server machine and your post fixed the problem. Thanks a lot 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author Neelima Kapoor 
Date Sep 24, 2008 
Message Hi,

I am calling the following line of code from my ArcGIS Server tool.

IGISServerConnection gisServerConnection = new GISServerConnectionClass();

However, I get the following error:

Retrieving the COM class factory for component with CLSID {CD57B642-1B4A-4E02-A1D0-FFDBCF0E5A41} failed due to the following error: 80040154.

Kindly help !! 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author Nidhi Kumar 
Date Oct 30, 2008 
Message Hi Neelima ,

I am also getting the same error while initiating this class. Did you find the solution? 
   
Report Inappropriate Content • Top • Print • Reply    
Subject Re: Retrieving the COM class factory component with CLSID {...} failed due to the following error: 8 
Author Ahmed Salih 
Date Jun 20, 2009 
Message That realy Help thanxs so Much (: