<?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: Core host (stand alone .exe application): Possible to connect to and enterprise GDB and do a spatial query? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1524482#M11985</link>
    <description>&lt;P&gt;Thanks for the suggestion. Unfortunately, I ran the solution without modifying anything. Then I navigated to a *file* geodatabase, clicked the Open button and got the MsgBox that read: "No tables or feature datasets read". I tried that with a FGDB on my C drive and on a network drive with the UNC path and the mapped drive "letter".&lt;/P&gt;&lt;P&gt;The exception that triggered the above occurred on the line that read:&lt;/P&gt;&lt;P&gt;using (Geodatabase gdb = new Geodatabase(&lt;BR /&gt;new FileGeodatabaseConnectionPath(new Uri(_gdbPath, UriKind.Absolute)))) {&lt;/P&gt;&lt;P data-unlink="true"&gt;The exception had this description: "External component has thrown an exception." Unfortunately, that doesn't help me troubleshoot much at all. Something more descriptive like "&lt;EM&gt;error checking out a license&lt;/EM&gt;" would have been much more helpful!&amp;nbsp; And that was a very similar message that I got in &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/standa-alone-exe-cannot-run-corehost-sample-quot/m-p/1522311#M11958" target="_self"&gt;my previous post&lt;/A&gt; on&amp;nbsp;a very similar line that attempted to 'connect'/open the geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Thoughts?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 16:07:45 GMT</pubDate>
    <dc:creator>AZendel</dc:creator>
    <dc:date>2024-08-20T16:07:45Z</dc:date>
    <item>
      <title>Core host (stand alone .exe application): Possible to connect to and enterprise GDB and do a spatial query?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1523810#M11973</link>
      <description>&lt;P&gt;I posted this last week&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/standa-alone-exe-cannot-run-corehost-sample-quot/m-p/1522311#M11958" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/standa-alone-exe-cannot-run-corehost-sample-quot/m-p/1522311#M11958&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Over the weekend I wondered if it's even possible to do a spatial query overlay in a stand-alone "core host" app. This would be like doing a select by attributes in layer A, then a select by location for features in layer B and then loop through the results to read attribute values. It seems like a lot of Pro functionality requires you to build an add-in. This is obviously a must for tasks that require interaction with a map or the UI, but what about projects like mine that just need to do a spatial query? We could do this via ArcObjects with ArcMap, but we need to migrate our project to Pro. I understand that I'll need to check for Pro licenses (that part of my code already does). I want to avoid add-ins because every time you want to debug an add-in, you have to restart Pro, then load the project and then do all of the clicks to get your add-in to run. That's time consuming and it gets a bit frustrating.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 15:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1523810#M11973</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2024-08-19T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Core host (stand alone .exe application): Possible to connect to and enterprise GDB and do a spatial query?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1524205#M11982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried ArcGIS Pro Esri Community sample&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/CoreHost/CoreHostGDB" target="_self"&gt;CoreHostGDB&lt;/A&gt;&amp;nbsp;? You can modify it for your requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Change geodatabase constructor to one of the overloads for enterprise database:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;public&lt;/SPAN&gt; Geodatabase( 
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic6943.html" target="_blank" rel="noopener"&gt;DatabaseConnectionProperties&lt;/A&gt; &lt;I&gt;databaseConnectionProperties&lt;/I&gt;
)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;public&lt;/SPAN&gt; Geodatabase( 
   &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic6936.html" target="_blank" rel="noopener"&gt;DatabaseConnectionFile&lt;/A&gt; &lt;I&gt;databaseConnectionFile&lt;/I&gt;
)&lt;/PRE&gt;&lt;P&gt;Add extra button which executes your workflow on selected table record. After testing you can delete all GUI if you don't need it.&lt;/P&gt;&lt;P&gt;To create Buffer use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic8204.html" target="_self"&gt;GeometryEngine.Instance.Buffer&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You can use all stuff from two libraries: ArcGIS.CoreHost.dll and&amp;nbsp;ArcGIS.Core.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 07:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1524205#M11982</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-08-20T07:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Core host (stand alone .exe application): Possible to connect to and enterprise GDB and do a spatial query?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1524482#M11985</link>
      <description>&lt;P&gt;Thanks for the suggestion. Unfortunately, I ran the solution without modifying anything. Then I navigated to a *file* geodatabase, clicked the Open button and got the MsgBox that read: "No tables or feature datasets read". I tried that with a FGDB on my C drive and on a network drive with the UNC path and the mapped drive "letter".&lt;/P&gt;&lt;P&gt;The exception that triggered the above occurred on the line that read:&lt;/P&gt;&lt;P&gt;using (Geodatabase gdb = new Geodatabase(&lt;BR /&gt;new FileGeodatabaseConnectionPath(new Uri(_gdbPath, UriKind.Absolute)))) {&lt;/P&gt;&lt;P data-unlink="true"&gt;The exception had this description: "External component has thrown an exception." Unfortunately, that doesn't help me troubleshoot much at all. Something more descriptive like "&lt;EM&gt;error checking out a license&lt;/EM&gt;" would have been much more helpful!&amp;nbsp; And that was a very similar message that I got in &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/standa-alone-exe-cannot-run-corehost-sample-quot/m-p/1522311#M11958" target="_self"&gt;my previous post&lt;/A&gt; on&amp;nbsp;a very similar line that attempted to 'connect'/open the geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 16:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1524482#M11985</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2024-08-20T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Core host (stand alone .exe application): Possible to connect to and enterprise GDB and do a spatial query?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1524697#M11987</link>
      <description>&lt;P&gt;I think that you use ArcGIS Pro 3.2. I have tested on ArcGIS Pro 3.2 and have the same results.&lt;/P&gt;&lt;P&gt;I had older samples and made testing with them.&lt;/P&gt;&lt;P&gt;Old version of sample works, newest don't. The difference is in csproj file.&lt;/P&gt;&lt;P&gt;Old version:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    &amp;lt;TargetFramework&amp;gt;net6.0-windows&amp;lt;/TargetFramework&amp;gt;
    &amp;lt;RuntimeIdentifier&amp;gt;win10-x64&amp;lt;/RuntimeIdentifier&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;New version:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    &amp;lt;TargetFramework&amp;gt;net8.0-windows&amp;lt;/TargetFramework&amp;gt;
    &amp;lt;RuntimeIdentifier&amp;gt;win-x64&amp;lt;/RuntimeIdentifier&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 20:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1524697#M11987</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-08-20T20:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Core host (stand alone .exe application): Possible to connect to and enterprise GDB and do a spatial query?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1525010#M11989</link>
      <description>&lt;P&gt;That appears to have fixed it! It's listing the contents of a FGDB feature class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm on Pro 3.03 because our county's outdated version of ArcGIS server apparently doesn't play nice with anything &amp;gt; 3.0.x. Now to test this with our Enterprise GDB.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 11:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/core-host-stand-alone-exe-application-possible-to/m-p/1525010#M11989</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2024-08-21T11:59:57Z</dc:date>
    </item>
  </channel>
</rss>

