AnsweredAssumed Answered

Geoprocessor service failed: LocalServer start failed: executable not found.

Question asked by geoff.klein on Sep 2, 2015
Latest reply on Sep 6, 2015 by geoff.klein

I've seen a couple posts for this issue but can't seem to find any answers -

I am attempting to start a local geoprocessing service in my runtime desktop application.

 

 

I am using the code provided in the desktop guide for local geoprocessing:

 

 

https://developers.arcgis.com/net/desktop/guide/run-a-geoprocessing-task.htm#ESRI_SECTION1_65A6A93A402D49408E9C9687CF090DED

 

 

My code:

 

 

private string gpkPath = @"C:\Testing\Model.gpk";

private string gpUrl = string.Empty;

 

 

private async void StartLocalGpService()

{

    var gpService = new LocalGeoprocessingService(gpkPath, GeoprocessingServiceType.SubmitJobWithMapServerResult);

    await gpService.StartAsync();

    gpUrl =  gpService.UrlGeoprocessingService;

}

 

 

On the 'await gpService.StartAsync();' line it throws this exception:

Sample Error

Geoprocessor service failed: LocalServer start failed: executable not found.

 

 

 

 

I've tried a variety of very basic .gpk packages all with 'Support ArcGIS Runtime' checked.  I've also tried all combinations of the geoprocessingservicetype (execute, submitjob, and SubmitJobWithMapServerResult)

 

 

Are there at least any .gpk samples out there that work that I can test on my machine?

Attachments

Outcomes