<?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: HRESULT ERROR in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378138#M9998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually its working fine with arcmap. i changed Near tool with GenerateNearTable and i execute it with arcmap and its work but not with the code.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206636_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/206637_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem persist for all geoprocessing tools except buffer which worked good.&lt;/P&gt;&lt;P&gt;thanks for responding. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 13:32:29 GMT</pubDate>
    <dc:creator>HichamEL_HAOUASS</dc:creator>
    <dc:date>2016-06-02T13:32:29Z</dc:date>
    <item>
      <title>HRESULT ERROR</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378136#M9996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;i am getting a serious problem with executing geoprocessing tools.&lt;/P&gt;&lt;P&gt;any time i compile the code it send me (An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in ESRI.ArcGIS.Geoprocessor.dll) with the error code number -2147467259.&lt;/P&gt;&lt;P&gt;i am working with arcengine 10.3.1 on vb.net&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an exemple of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imports ESRI.ArcGIS.AnalysisTools&lt;/P&gt;&lt;P&gt;Public Class Form2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim gp As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim nearTool As Near = New Near()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nearTool.in_features = "C:\bd\New_Shapefile.shp"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nearTool.near_features = "C:\New_Shapefile(2).shp"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nearTool.out_feature_class = "C:\bb.dbf"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.Execute(nearTool, Nothing)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;End Class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206394_pastedImage_8.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378136#M9996</guid>
      <dc:creator>HichamEL_HAOUASS</dc:creator>
      <dc:date>2016-05-31T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: HRESULT ERROR</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378137#M9997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried running the Near tool manually in ArcMap or ArcCatalog, using the same parameters to make sure there is nothing odd going on with any of the input or output shapefiles?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378137#M9997</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-05-31T15:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: HRESULT ERROR</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378138#M9998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually its working fine with arcmap. i changed Near tool with GenerateNearTable and i execute it with arcmap and its work but not with the code.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206636_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/206637_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem persist for all geoprocessing tools except buffer which worked good.&lt;/P&gt;&lt;P&gt;thanks for responding. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 13:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378138#M9998</guid>
      <dc:creator>HichamEL_HAOUASS</dc:creator>
      <dc:date>2016-06-02T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: HRESULT ERROR</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378139#M9999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at your screen shots I would say you need to define a full path to your output dbf file.&amp;nbsp; Also I can tell you are using Windows 10. Now I've discovered that even as the administrator is nearly impossible to write to the root c:\ drive, I think it's a windows thing. So make sure you write to a sub-folder that you have permission to write to. On my works machine I have a folder called c:\Local that I am able to write to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 16:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/hresult-error/m-p/378139#M9999</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2016-06-20T16:25:09Z</dc:date>
    </item>
  </channel>
</rss>

