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

3630
5
Jump to solution
09-02-2015 10:48 PM
GeoffKlein
New Contributor

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_65A6A93A4...

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?

0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor

Hi,

The error indicates that the API cannot find the LocalServer...

- Are you using the Nuget package for the API? If so, that does not include the LocalServer and you'll need to download the full SDK setup from ArcGIS Runtime SDK for .Net | ArcGIS for Developers

- If you have installed the SDK and have created a deployment then you need to make sure you check the boxes for LocalServer and Geoprocessing support Create an ArcGIS Runtime deployment—ArcGIS Runtime SDK for .NET | ArcGIS for Developers

- If you haven't created a deployment or set the ArcGISRuntimeEnvironment.InstallPath property then check the LocalServer did install ok under program files: C:\Program Files (x86)\ArcGIS SDKs\DotNet10.2.6\WindowsDesktop\bin\arcgisruntime10.2.6

Cheers

Mike

View solution in original post

0 Kudos
5 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

The error indicates that the API cannot find the LocalServer...

- Are you using the Nuget package for the API? If so, that does not include the LocalServer and you'll need to download the full SDK setup from ArcGIS Runtime SDK for .Net | ArcGIS for Developers

- If you have installed the SDK and have created a deployment then you need to make sure you check the boxes for LocalServer and Geoprocessing support Create an ArcGIS Runtime deployment—ArcGIS Runtime SDK for .NET | ArcGIS for Developers

- If you haven't created a deployment or set the ArcGISRuntimeEnvironment.InstallPath property then check the LocalServer did install ok under program files: C:\Program Files (x86)\ArcGIS SDKs\DotNet10.2.6\WindowsDesktop\bin\arcgisruntime10.2.6

Cheers

Mike

0 Kudos
GeoffKlein
New Contributor

Thanks Mike,

Checking the boxes for local server and geoprocessing in the manifest file solved the 'executable not found' issue.  I still can't seem to get the model to run successfully as a geoprocessing package.  Now my error is:

Geoprocessor service failed: Error code '400' : 'Unable to complete operation.' Error executing tool.: ERROR 000816: The tool is not valid.

The same tool works in my runtime application if I share it as a geoprocessing service and set my uri for the geoprocessorTask to the service on arcgis server.

The model is very simple, uses merge and Make Feature Layer.

I've checked local server, geoprocessing, and all the geoprocessing sub categories in the deployment.arcgisruntimemanifest file.

I've got ArcGIS SDK 10.2.6 and created the .gpk on ArcMap 10.3.1

Cheers,

Geoff

0 Kudos
GeoffKlein
New Contributor

It works if I create the geoprocessing package using a machine with ArcGIS Desktop 10.2 installed.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Does it work from Desktop 10.3.1 if you install the patch: ArcGIS 10.3.1 for Desktop Package Map For ArcGIS Runtime Patch | Samples and Utilities ​?

Cheers

Mike

0 Kudos
GeoffKlein
New Contributor

Hi Mike,

No luck using the patch on my end.  I installed the patch, verified it with patchfinder, created a geoprocessing package using the results from the same model that works in 10.2, and got the same error (ERROR 000816: The tool is not valid).

If I make a model in 10.2.2 and share the results as a geoprocessing package it will work in runtime.  If I run that same model on desktop 10.3.1 (with the patch) it runs fine, but the package I create from the results does not work.  Once the model has been run in 10.3, it will not show up when I browse to the toolbox in catalog for 10.2, so I can't go back and test it in the other direction.

Cheers,

Geoff

0 Kudos