<?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: Error instancing a FileGDBWorkkspaceFactotyClass in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149497#M3876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been coding ArcObjects for so many years, and never had a problem with instancing Workspaces Factories with the "new" keyword.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But there's always a first for everything, and this was my first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Oct 2010 16:37:57 GMT</pubDate>
    <dc:creator>PedroAbreu</dc:creator>
    <dc:date>2010-10-13T16:37:57Z</dc:date>
    <item>
      <title>Error instancing a FileGDBWorkkspaceFactotyClass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149495#M3874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With ArcGIS Desktop 10, &lt;/SPAN&gt;&lt;STRONG&gt;Sometimes&lt;/STRONG&gt;&lt;SPAN&gt; this line of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;IWorkspaceFactory factory = new FileGDBWorkspaceFactoryClass();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;throws this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Unable to cast object of type System.__ComObject to type ESRI.ArcGIS.DataSourcesGDB.FileGDBWorkspaceFactoryClass&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm puzzled... Anybody has experienced this yet?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 14:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149495#M3874</guid>
      <dc:creator>PedroAbreu</dc:creator>
      <dc:date>2010-10-07T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error instancing a FileGDBWorkkspaceFactotyClass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149496#M3875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're running this code in a standalone application then you need to check out a license prior to running any ArcObjects code.&amp;nbsp; You also shouldn't be using New to create an instance of the workspace factory.&amp;nbsp; A workspace factory is a singleton object and should be instantiated using the Activator class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Interacting_with_singleton_objects/00010000043p000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Interacting_with_singleton_objects/00010000043p000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 14:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149496#M3875</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-10-07T14:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error instancing a FileGDBWorkkspaceFactotyClass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149497#M3876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been coding ArcObjects for so many years, and never had a problem with instancing Workspaces Factories with the "new" keyword.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But there's always a first for everything, and this was my first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 16:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149497#M3876</guid>
      <dc:creator>PedroAbreu</dc:creator>
      <dc:date>2010-10-13T16:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error instancing a FileGDBWorkkspaceFactotyClass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149498#M3877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Neil - you've helped me on and off for 20 years now!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149498#M3877</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2019-12-12T13:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error instancing a FileGDBWorkkspaceFactotyClass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149499#M3878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep! Thank you. this helped. But I still wonder most of my projects. this code won't break.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;IWorkspaceFactory factory = new FileGDBWorkspaceFactoryClass();  &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for my current project it breaks. And&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/4377"&gt;Neil Clemmons&lt;/A&gt; answer solves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/error-instancing-a-filegdbworkkspacefactotyclass/m-p/149499#M3878</guid>
      <dc:creator>NattawutWiginiyatanee1</dc:creator>
      <dc:date>2020-08-21T16:33:37Z</dc:date>
    </item>
  </channel>
</rss>

