<?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: Unable to Create/open a fGBD in .NET Application in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567751#M12401</link>
    <description>&lt;P&gt;What version was the fGDB created with? If it's a newer version, it may have some data types and functionality not available in 3.1.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 14:08:23 GMT</pubDate>
    <dc:creator>tempStephenRhea_NV5</dc:creator>
    <dc:date>2024-12-12T14:08:23Z</dc:date>
    <item>
      <title>Unable to Create/open a fGBD in .NET Application</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567735#M12399</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;when I start to create/open a FileGeodatabase in c#, with the ArcGIS Pro SDK, e.g.&lt;/P&gt;&lt;P&gt;using (Geodatabase fileGeodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new &lt;EM&gt;&lt;STRONG&gt;Uri(gdbPath))))&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;// can open geodatabase&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;return true;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following Exception:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at ArcGIS.Core.Internal.Interop.GetInterface(Guid&amp;amp; id, Object&amp;amp; obj)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at ArcGIS.Core.Internal.Interop.get_Geodatabase()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at ArcGIS.Core.Data.GeodatabaseUtil.OpenDatastore(String path)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at ArcGIS.Core.Data.Geodatabase.Open(Uri uri)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at ArcGIS.Core.Data.Geodatabase..ctor(FileGeodatabaseConnectionPath connectionPath'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Courious the Exception occurs only on some PC, often with ArcGIS 3.1&lt;/P&gt;&lt;P&gt;Any help is welcome&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 13:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567735#M12399</guid>
      <dc:creator>TOPOGRAPHICS</dc:creator>
      <dc:date>2024-12-12T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create/open a fGBD in .NET Application</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567751#M12401</link>
      <description>&lt;P&gt;What version was the fGDB created with? If it's a newer version, it may have some data types and functionality not available in 3.1.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567751#M12401</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2024-12-12T14:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create/open a fGBD in .NET Application</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567775#M12402</link>
      <description>&lt;P&gt;Thanks for your reaction.&lt;/P&gt;&lt;P&gt;The fGDB was created with the same ArcGIS Pro Version, on the same machine, which is also used for the &lt;STRONG&gt;"new Geodatabase"&lt;/STRONG&gt;-Function in c#. In the case it is &lt;SPAN&gt;ArcGIS Pro 3.1.41833&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:34:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567775#M12402</guid>
      <dc:creator>TOPOGRAPHICS</dc:creator>
      <dc:date>2024-12-12T14:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create/open a fGBD in .NET Application</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567797#M12406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Are you trying to open geodatabase from core host application? Same error is &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-corehost-application-can-t-open-fgdb-older/m-p/1564004" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Check project .NET version. For&amp;nbsp;&lt;SPAN&gt;3.1.x was .NET 6.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 15:21:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1567797#M12406</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-12-12T15:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create/open a fGBD in .NET Application</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1568478#M12414</link>
      <description>&lt;P&gt;Thank you for your reply. This is the same thing I was thinking about. but I haven't been able to try it yet.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So I need to compile multiple core host applications, one for each ArcGIS Pro version?&lt;BR /&gt;It's not a good solution, but apparently necessary.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 17:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1568478#M12414</guid>
      <dc:creator>TOPOGRAPHICS</dc:creator>
      <dc:date>2024-12-13T17:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create/open a fGBD in .NET Application</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1568760#M12417</link>
      <description>&lt;P&gt;You need to compile core host application for each ArcGIS Pro SDK which use newest .NET version:&lt;/P&gt;
&lt;P&gt;ArcGIS Pro SDK 2.9.x - .NET Framework 4.8&lt;/P&gt;
&lt;P&gt;ArcGIS Pro SDK 3.0.x -&amp;nbsp;ArcGIS Pro SDK 3.2.x - .NET 6.0&lt;/P&gt;
&lt;P&gt;ArcGIS Pro SDK 3.3.x - ArcGIS Pro SDK 3.4.x - .NET 8.0&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 06:29:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1568760#M12417</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-12-16T06:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create/open a fGBD in .NET Application</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1569127#M12418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/37677"&gt;@TOPOGRAPHICS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Ensure ArcGIS Pro and SDK Compatibility&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Verify the &lt;STRONG&gt;ArcGIS Pro version&lt;/STRONG&gt; on the problematic PCs:&lt;UL&gt;&lt;LI&gt;Open ArcGIS Pro &amp;gt; &lt;STRONG&gt;About&lt;/STRONG&gt; &amp;gt; Check the version.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Check that the &lt;STRONG&gt;ArcGIS Pro SDK&lt;/STRONG&gt; version in your application matches the installed ArcGIS Pro version:&lt;UL&gt;&lt;LI&gt;SDK 3.x works only with ArcGIS Pro 3.x.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check File Geodatabase Version&lt;/STRONG&gt; File Geodatabases have versions that define compatibility. For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS Pro 3.1 supports File Geodatabases 10.0 and above.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Additionally, could you please check if you are using QueuedTask.Run before opening the geodatabase in your code, as shown below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            try
            {
                await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =&amp;gt;
                {
                    // Opens a file geodatabase. This will open the geodatabase if the folder exists and contains a valid geodatabase.
                    using (
              Geodatabase geodatabase =
                new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(@"\\path to gdb"))))
                    {
                        // Use the geodatabase.
                    }
                });
            }
            catch (GeodatabaseNotFoundOrOpenedException exception)
            {
                // Handle Exception.
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 23:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/unable-to-create-open-a-fgbd-in-net-application/m-p/1569127#M12418</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-12-16T23:26:54Z</dc:date>
    </item>
  </channel>
</rss>

