Select to view content in your preferred language

Retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15} failed due to the following error: 80040154.

601
0
04-16-2018 07:51 AM
JoseSanchez
Regular Contributor

Hello everyone,

I am getting the following error message:

Retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15} failed due to the following error: 80040154.

When running a web service in VS 2012 and ArcGIS 10.2:

ArcObjects 10 .NET SDK Help 

Public Function ArcSdeWorkspaceFromFile(ByVal connectionFile As String) As IWorkspace
Try

Dim factoryType As Type = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory")

******************** LINE WHEN IT CRASHES *****************
Dim workspaceFactory2 As IWorkspaceFactory2 = CType(Activator.CreateInstance(factoryType), IWorkspaceFactory2)  

Return workspaceFactory2.OpenFromFile(connectionFile, 0)


Catch ex As Exception
Debug.writeline(ex.Message)
Return Nothing


End Try
End Function

0 Kudos
0 Replies