<?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 Error running the GeoProcessor from a Windows Service (Network Service) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-running-the-geoprocessor-from-a-windows/m-p/618360#M16597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a simple Windows Service application in VC++, which all it does is call the GeoProcessor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeoProcessorPtr ipGP(CLSID_GeoProcessor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipGP-&amp;gt;SetEnvironmentValue(L"workspace",_variant_t(L"C:\\Temp\\MapsTemp\\GDT"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IVariantArrayPtr ipValues(CLSID_VarArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipValues-&amp;gt;Add("C:\\Temp\\MapsTemp\\GDT");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipValues-&amp;gt;Add("mySERVgdb");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeoProcessorResultPtr ipResult;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITrackCancelPtr trcl(CLSID_TrackCancel);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipResult = ipGP-&amp;gt;Execute(L"CreatePersonalGDB", ipValues, trcl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this service is run as the default 'Local Service' user then it works fine. However, when it is run as 'Network Service' it fails and crashes the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A red-x windows MSVC++ Debug Library dialog appears saying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Debug Error!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Program: Myprogram.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R6010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- abort() has been called&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Press Retry to debug the application)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Abort, Retry, Fail&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The service then stops, and the geodatabase is not created. I have put logging in and it works ok up to the GP-&amp;gt;Execute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Network Service user has been given full permission on the folders in question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is something we have done in the past with 9.3 and it has worked fine, but doesn't seem to work in 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 12:12:08 GMT</pubDate>
    <dc:creator>MattTaylor3</dc:creator>
    <dc:date>2013-07-23T12:12:08Z</dc:date>
    <item>
      <title>Error running the GeoProcessor from a Windows Service (Network Service)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/error-running-the-geoprocessor-from-a-windows/m-p/618360#M16597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a simple Windows Service application in VC++, which all it does is call the GeoProcessor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeoProcessorPtr ipGP(CLSID_GeoProcessor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipGP-&amp;gt;SetEnvironmentValue(L"workspace",_variant_t(L"C:\\Temp\\MapsTemp\\GDT"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IVariantArrayPtr ipValues(CLSID_VarArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipValues-&amp;gt;Add("C:\\Temp\\MapsTemp\\GDT");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipValues-&amp;gt;Add("mySERVgdb");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeoProcessorResultPtr ipResult;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITrackCancelPtr trcl(CLSID_TrackCancel);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ipResult = ipGP-&amp;gt;Execute(L"CreatePersonalGDB", ipValues, trcl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this service is run as the default 'Local Service' user then it works fine. However, when it is run as 'Network Service' it fails and crashes the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A red-x windows MSVC++ Debug Library dialog appears saying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Debug Error!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Program: Myprogram.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R6010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- abort() has been called&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Press Retry to debug the application)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Abort, Retry, Fail&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The service then stops, and the geodatabase is not created. I have put logging in and it works ok up to the GP-&amp;gt;Execute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Network Service user has been given full permission on the folders in question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is something we have done in the past with 9.3 and it has worked fine, but doesn't seem to work in 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 12:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/error-running-the-geoprocessor-from-a-windows/m-p/618360#M16597</guid>
      <dc:creator>MattTaylor3</dc:creator>
      <dc:date>2013-07-23T12:12:08Z</dc:date>
    </item>
  </channel>
</rss>

