<?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: Failed to access to PGDB in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316083#M8259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No error on fPath or fName.&amp;nbsp; I will find out why when I touch it again.&amp;nbsp; The component I used worked well before.&amp;nbsp; Thanks for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What are your &lt;SPAN style="color:#333333;"&gt;&lt;STRONG&gt;fPath&lt;/STRONG&gt; and &lt;STRONG&gt;fName&lt;/STRONG&gt; variables, what do they contain?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 18:16:32 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2014-06-05T18:16:32Z</dc:date>
    <item>
      <title>Failed to access to PGDB</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316080#M8256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried to access to a PGDB using the code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public IFeatureClass GetFCfromPGDB(string fPath, string fName) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IWorkspaceFactory2 workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.AccessWorkspaceFactoryClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ESRI.ArcGIS.Geodatabase.IWorkspace pWS = workspaceFactory.OpenFromFile(fPath, 0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IFeatureClass fc = GetFeatureClass(pWS, fName); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return fc;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Got COMException: Retrieving the COM class factory for component with CLSID {DD48C96A-D92A-11D1-AA81-00C04FA33A15} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to handle this problem? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316080#M8256</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2014-05-23T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to access to PGDB</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316081#M8257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Referring to &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/15940/trying-to-instantiate-geoprocessor-with-net-vs-2010"&gt;http://gis.stackexchange.com/questions/15940/trying-to-instantiate-geoprocessor-with-net-vs-2010&lt;/A&gt;&lt;SPAN&gt;, I added &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The debugging went through the the line, but got an new COMException (Exception from HRESULT: 0x80040216) at&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Geodatabase.IWorkspace pWS = workspaceFactory.OpenFromFile(fPath, 0);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:32:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316081#M8257</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2014-05-23T13:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to access to PGDB</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316082#M8258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are your &lt;/SPAN&gt;&lt;SPAN style="color:#333333;"&gt;&lt;STRONG&gt;fPath&lt;/STRONG&gt; and &lt;STRONG&gt;fName&lt;/STRONG&gt; variables, what do they contain?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316082#M8258</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-05-26T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to access to PGDB</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316083#M8259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No error on fPath or fName.&amp;nbsp; I will find out why when I touch it again.&amp;nbsp; The component I used worked well before.&amp;nbsp; Thanks for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What are your &lt;SPAN style="color:#333333;"&gt;&lt;STRONG&gt;fPath&lt;/STRONG&gt; and &lt;STRONG&gt;fName&lt;/STRONG&gt; variables, what do they contain?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 18:16:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/failed-to-access-to-pgdb/m-p/316083#M8259</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2014-06-05T18:16:32Z</dc:date>
    </item>
  </channel>
</rss>

