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");
} |
| |
|