<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15} failed due to the following error: 80040154. in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/707501#M4827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15} failed due to the following error: 80040154.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running a web service in VS 2012 and ArcGIS 10.2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Connecting_to_a_geodatabase/0001000003s8000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Connecting_to_a_geodatabase/0001000003s8000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public Function ArcSdeWorkspaceFromFile(ByVal connectionFile As String) As IWorkspace&lt;BR /&gt; Try&lt;/P&gt;&lt;P&gt;Dim factoryType As Type = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************** LINE WHEN IT CRASHES *****************&lt;BR /&gt; Dim workspaceFactory2 As IWorkspaceFactory2 = CType(Activator.CreateInstance(factoryType), IWorkspaceFactory2)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return workspaceFactory2.OpenFromFile(connectionFile, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Catch ex As Exception&lt;BR /&gt; Debug.writeline(ex.Message)&lt;BR /&gt; Return Nothing&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; End Try&lt;BR /&gt; End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2018 14:51:38 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2018-04-16T14:51:38Z</dc:date>
    <item>
      <title>Retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15} failed due to the following error: 80040154.</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/707501#M4827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15} failed due to the following error: 80040154.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running a web service in VS 2012 and ArcGIS 10.2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Connecting_to_a_geodatabase/0001000003s8000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Connecting_to_a_geodatabase/0001000003s8000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Public Function ArcSdeWorkspaceFromFile(ByVal connectionFile As String) As IWorkspace&lt;BR /&gt; Try&lt;/P&gt;&lt;P&gt;Dim factoryType As Type = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************** LINE WHEN IT CRASHES *****************&lt;BR /&gt; Dim workspaceFactory2 As IWorkspaceFactory2 = CType(Activator.CreateInstance(factoryType), IWorkspaceFactory2)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Return workspaceFactory2.OpenFromFile(connectionFile, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Catch ex As Exception&lt;BR /&gt; Debug.writeline(ex.Message)&lt;BR /&gt; Return Nothing&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; End Try&lt;BR /&gt; End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 14:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/707501#M4827</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2018-04-16T14:51:38Z</dc:date>
    </item>
  </channel>
</rss>

