<?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 Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111 in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275744#M1769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the application was working fine last Friday but today I am getting the error message below in this line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;workspaceFactory = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff; border: 0px; font-size: 22px;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; background-color: #ffffff; border: 0px; font-size: 22px;"&gt;Activator&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;.CreateInstance(factoryType), ESRI.ArcGIS.Geodatabase.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; background-color: #ffffff; border: 0px; font-size: 22px;"&gt;IWorkspaceFactory&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2017 13:42:16 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2017-06-26T13:42:16Z</dc:date>
    <item>
      <title>retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275736#M1761</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&amp;nbsp; wrote a web service a few months&amp;nbsp;ago, and it was working fine. Then&amp;nbsp;I decided to upgrade my workstation to ArcGIS Server 10.3 and it stopped working. So&amp;nbsp;I uninstalled AcGIS Server 10.3 and I installed back ArcGIS Server 10.2 and the web service&amp;nbsp;still does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.2 client and server on my workstation. IIS .Net Framework 3.5&amp;nbsp;and &amp;nbsp;ApplicationPool 2.0, VS 2010 or VS 2012. I also did tests&amp;nbsp;with IIS .Net Framework 4.0 and Application Pool 4.0 and the error persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look to the zipped file attached to this post. It is a simplified version of the web service, it can be opened with&amp;nbsp;&amp;nbsp;VS 2010 or VS 2012. The line that has the problem is this one: "&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Activator&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.CreateInstance(factoryType), ESRI.ArcGIS.Geodatabase.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;IWorkspaceFactory&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)", it fails with an error message "r&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;etrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;failed due to the following error: 80040111."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I created a Console Application using the same code and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HELP!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;WebMethod&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;()&amp;gt; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Public&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Function&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; HelloWorld() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;String&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;' For example, connectionFile = "C:\myData\Connection to Kona.sde".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;'Public Function ArcSdeWorkspaceFromFile(ByVal connectionFile As String) As IWorkspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; connectionFile &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;String&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; factoryType &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Type&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.GetTypeFromProgID(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"esriDataSourcesGDB.SdeWorkspaceFactory"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; workspaceFactory &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; ESRI.ArcGIS.Geodatabase.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;IWorkspaceFactory&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; wsFactory &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; ESRI.ArcGIS.Geodatabase.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;IWorkspaceFactory&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;' This is where I get the error message: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;'&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;' Retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;' failed due to the following error: 80040111.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;&lt;SPAN style="font-family: Consolas;"&gt; workspaceFactory = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas;"&gt;Activator&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;.CreateInstance(factoryType), ESRI.ArcGIS.Geodatabase.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas;"&gt;IWorkspaceFactory&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&amp;nbsp;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Catch&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; ex &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Exception&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Console&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.WriteLine(ex.Message)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Return&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; ex.Message&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;'End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Return&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"Hello World"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Function&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 19:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275736#M1761</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-06-22T19:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275737#M1762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your Enable 32-bit applications property in IIS app pool &amp;nbsp;set to True&amp;nbsp;by any chance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 21:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275737#M1762</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2017-06-22T21:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275738#M1763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do you &amp;nbsp;set up this value in IIS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 11:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275738#M1763</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-06-23T11:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275739#M1764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just checked, and&amp;nbsp;the value is set to True.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/358367_ApplicationPoolWithEnable32BitTrue.jpg" style="width: 620px; height: 578px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275739#M1764</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-06-23T12:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275740#M1765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set it to false&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 12:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275740#M1765</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2017-06-23T12:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275741#M1766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Spana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set it to False and the line where it was failing does not fail anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now&amp;nbsp; I am getting an error message on the next line&amp;nbsp;of the code:&amp;nbsp; workspaceFactory.OpenFromFile(connectionFile, 0)&amp;nbsp; with error message: &lt;/P&gt;&lt;P&gt;Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; connectionFile = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;"C:\SDEConn\SDEINSTANCE.sde"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; myIWorkspace &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;IWorkspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;myIWorkspace = workspaceFactory.OpenFromFile(connectionFile, 0)&amp;nbsp;&amp;nbsp; ********* ERROR MESSAGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 13:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275741#M1766</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-06-23T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275742#M1767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found it!!!&amp;nbsp; The IIS account IIS_IUSRS must be added to the folder where SDE Connection files are located in read only access. Otherwise the ASP.Net application can no read the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/358378_IIS_IUSRS.jpg" style="width: 620px; height: 579px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275742#M1767</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-06-23T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275743#M1768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct if the IIS authentication is Anonymous IIS_USRS should have access to that folder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275743#M1768</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2017-06-23T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275744#M1769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the application was working fine last Friday but today I am getting the error message below in this line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;workspaceFactory = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff; border: 0px; font-size: 22px;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; background-color: #ffffff; border: 0px; font-size: 22px;"&gt;Activator&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;.CreateInstance(factoryType), ESRI.ArcGIS.Geodatabase.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; background-color: #ffffff; border: 0px; font-size: 22px;"&gt;IWorkspaceFactory&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 22px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275744#M1769</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-06-26T13:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving the COM class factory for component with CLSID {D9B4FA40-D6D9-11D1-AA81-00C04FA33A15}failed due to the following error: 80040111</title>
      <link>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275745#M1770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found it! I just removed and added two references: Esri.ArcGIs.Geodatabae and EsriArcGIS.Syste, and it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/retrieving-the-com-class-factory-for-component/m-p/275745#M1770</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-06-26T14:05:11Z</dc:date>
    </item>
  </channel>
</rss>

