<?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 Data on a network drive cannot be found by Geoprocessing ArcObject Tool in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-on-a-network-drive-cannot-be-found-by/m-p/344832#M9098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to access data on a network drive for use in an ArcbObjects geoprocessing object, and it does not work. I've tried using UNC paths and a mapped drive. I can use a UNC path or a mapped drive in the ArcMap tool without a problem. I have tried forward slashes and double backslashes as well. If I use non UNC paths, this works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim inputSurface As String ="\\myServer\c$\Users\ArcGISSOC\AppData\Local\Temp\raster12"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim params As IVariantArray&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params = New VarArray&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add(inputSurface) 'input surface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add(outputContours) 'output polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add("0.5") 'contour interval&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add("0") 'base contour&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add("3.28") 'z factor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GP.Execute("Contour_sa", params, Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim inputSurface As String ="C:\Users\ArcGISSOC\AppData\Local\Temp\raster12"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another intermediate object I have to crate to access the this data?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 18:51:28 GMT</pubDate>
    <dc:creator>BrianBehling</dc:creator>
    <dc:date>2010-10-06T18:51:28Z</dc:date>
    <item>
      <title>Data on a network drive cannot be found by Geoprocessing ArcObject Tool</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-on-a-network-drive-cannot-be-found-by/m-p/344832#M9098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to access data on a network drive for use in an ArcbObjects geoprocessing object, and it does not work. I've tried using UNC paths and a mapped drive. I can use a UNC path or a mapped drive in the ArcMap tool without a problem. I have tried forward slashes and double backslashes as well. If I use non UNC paths, this works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim inputSurface As String ="\\myServer\c$\Users\ArcGISSOC\AppData\Local\Temp\raster12"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim params As IVariantArray&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params = New VarArray&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add(inputSurface) 'input surface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add(outputContours) 'output polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add("0.5") 'contour interval&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add("0") 'base contour&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Add("3.28") 'z factor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GP.Execute("Contour_sa", params, Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim inputSurface As String ="C:\Users\ArcGISSOC\AppData\Local\Temp\raster12"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another intermediate object I have to crate to access the this data?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 18:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/data-on-a-network-drive-cannot-be-found-by/m-p/344832#M9098</guid>
      <dc:creator>BrianBehling</dc:creator>
      <dc:date>2010-10-06T18:51:28Z</dc:date>
    </item>
  </channel>
</rss>

