<?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: GxCatalogClass not in 10.1 anymore?  Causes error. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275780#M7067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What line causes the exception? Is it when you create the new gxCatalogClass object, or does it occur at some point after those two lines of code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are your references updated to the 10.1 SDK? For example, the ESRI.ArcGIS.Catalog namespace's path should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.Catalog.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think this is your problem (since I guess you would have compile errors and wouldn't even be able to build the project), but you might want to verify anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 16:52:58 GMT</pubDate>
    <dc:creator>EricWeber</dc:creator>
    <dc:date>2012-08-03T16:52:58Z</dc:date>
    <item>
      <title>GxCatalogClass not in 10.1 anymore?  Causes error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275777#M7064</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;SPAN&gt;I have code running in 10.0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pGxObject As ESRI.ArcGIS.Catalog.IGxObject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pGxCatalog = New ESRI.ArcGIS.Catalog.GxCatalogClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This gives me an error message upon upgrading to 10.1, it appears GxCatalogClass no longer exists.&amp;nbsp; Anyway to make my code work in 10.1?&amp;nbsp; I'm trying to gain access to the GetObjectFromFullName method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pete&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 16:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275777#M7064</guid>
      <dc:creator>PeteAtwood</dc:creator>
      <dc:date>2012-08-01T16:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: GxCatalogClass not in 10.1 anymore?  Causes error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275778#M7065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I have code running in 10.0:&lt;BR /&gt;&lt;BR /&gt;Dim pGxObject As ESRI.ArcGIS.Catalog.IGxObject&lt;BR /&gt;pGxCatalog = New ESRI.ArcGIS.Catalog.GxCatalogClass&lt;BR /&gt;&lt;BR /&gt;This gives me an error message upon upgrading to 10.1, it appears GxCatalogClass no longer exists.&amp;nbsp; Anyway to make my code work in 10.1?&amp;nbsp; I'm trying to gain access to the GetObjectFromFullName method.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Pete&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GxCatalogClass definitely still exists in the ESRI.ArcGIS.Catalog namespace:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00140000002p000000"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00140000002p000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have upgraded to 10.1, and the catalog object in the add-in I'm currently working on is still working the same as it did before. I notice in your code that you're declaring a variable, pGxObject, and then initializing a variable, pGxCatalog. Shouldn't those be the same?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 13:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275778#M7065</guid>
      <dc:creator>EricWeber</dc:creator>
      <dc:date>2012-08-03T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: GxCatalogClass not in 10.1 anymore?  Causes error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275779#M7066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Whoops...&amp;nbsp; Copied the wrong variable, should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pGxCatalog As ESRI.ArcGIS.Catalog.IGxCatalog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pGxCatalog = New ESRI.ArcGIS.Catalog.GxCatalogClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the code runs it says "InvalidCastException was unhandled" Unable to cast object of type 'System.__ConObject' to type 'ESRI.ArcGIS.Catalog.GxCatalogClass'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was working in 10.0 but not now in 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 15:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275779#M7066</guid>
      <dc:creator>PeteAtwood</dc:creator>
      <dc:date>2012-08-03T15:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: GxCatalogClass not in 10.1 anymore?  Causes error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275780#M7067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What line causes the exception? Is it when you create the new gxCatalogClass object, or does it occur at some point after those two lines of code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are your references updated to the 10.1 SDK? For example, the ESRI.ArcGIS.Catalog namespace's path should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\DeveloperKit10.1\DotNet\ESRI.ArcGIS.Catalog.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think this is your problem (since I guess you would have compile errors and wouldn't even be able to build the project), but you might want to verify anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 16:52:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275780#M7067</guid>
      <dc:creator>EricWeber</dc:creator>
      <dc:date>2012-08-03T16:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: GxCatalogClass not in 10.1 anymore?  Causes error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275781#M7068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All libraries point to 10.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 16:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275781#M7068</guid>
      <dc:creator>PeteAtwood</dc:creator>
      <dc:date>2012-08-30T16:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: GxCatalogClass not in 10.1 anymore?  Causes error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275782#M7069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you binding to Desktop or Engine? Starting at the 10.0 release each product has it's own install directory and you must call bind for standalone applications. This will essentially tell the application what product directory to pull its ESRI resources from. The Catalog assembly is provided with Desktop only so if you are binding to Engine you would expect to get an error because the Engine product doesn't have the Catalog assembly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 20:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275782#M7069</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2012-08-30T20:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: GxCatalogClass not in 10.1 anymore?  Causes error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275783#M7070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize this is an old post, but I was having the same problem with setting an IGxCatalog variable to a new GxCatalogClass, and the other suggestions did not help (someone on StackExchange (&lt;A href="http://gis.stackexchange.com/questions/14503/cant-cast-to-igxcatalog" title="http://gis.stackexchange.com/questions/14503/cant-cast-to-igxcatalog"&gt;arcgis 10.0 - Cant cast to IGxCatalog - Geographic Information Systems Stack Exchange&lt;/A&gt;) suggested using the Activator class, also.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You did not mention if you were running this inside an Esri program like ArcMap or ArcCatalog, but for us, running inside ArcMap, I found that at 10.1+ ArcMap implements the IGxApplication interface, which has a Catalog property, and using that method worked.&amp;nbsp; For us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The properties of IGxApplication and the classes that implement it are available here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0015000000nm000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0015000000nm000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 12:33:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/gxcatalogclass-not-in-10-1-anymore-nbsp-causes/m-p/275783#M7070</guid>
      <dc:creator>JohnKoch</dc:creator>
      <dc:date>2014-08-06T12:33:11Z</dc:date>
    </item>
  </channel>
</rss>

