Select to view content in your preferred language

Local server not starting

4367
8
Jump to solution
06-17-2015 06:46 AM
MichaelBoyko
Deactivated User

I'm trying to create project with code from sample "Local Server > Raster" in "ArcGIS Runtime Qt Samle 10.2.6", but process LocalRuntimeService.exe doesn't start. Аpplication output is in attached image. Pink text - is my debug text.

Does anyone know how to fix it?

P. S. Sorry for my bad English, I am from Ukraine

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

Michael-

Try commenting out your set client id in the main.cpp. This is setting it up to run as a basic app, but Local Server requires a standard license. You will need to apply a standard license once you are ready to deploy, but in the meantime, you can just not set client id or license in main.cpp, and it will run in developer mode. Developer mode will allow you to run local server.

Thanks,

Luke

View solution in original post

0 Kudos
8 Replies
LucasDanzinger
Esri Frequent Contributor

Michael-

Can you please attach your code to this thread?

Thanks,

Luke

0 Kudos
MichaelBoyko
Deactivated User

Yes, here it is.

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Hey Michael-

Could you please upload the whole project (including header and pro) to make it a bit easier to build quickly/debug?

Thanks!

Luke

0 Kudos
MichaelBoyko
Deactivated User

Of course, take it. Thanks for helping!

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Michael-

Try commenting out your set client id in the main.cpp. This is setting it up to run as a basic app, but Local Server requires a standard license. You will need to apply a standard license once you are ready to deploy, but in the meantime, you can just not set client id or license in main.cpp, and it will run in developer mode. Developer mode will allow you to run local server.

Thanks,

Luke

0 Kudos
MichaelBoyko
Deactivated User

It works! Thank you very much!

0 Kudos
Durga_PrasadD
Deactivated User

Hi Lucas,

I am facing similar problem using NET SDK. have created a gpk using the below python script in ArcGIS 10.3.When trying to consume as Local geoprocessing service in 10.2.6,I get below errors when running the application.I am not trying to Deploy yet.

  1. The application is running using developer license.The license is valid for development and testing only.
  2. Geoprocessor service failed.LocalServer start failed.executable not found.

What is the correct procedure to solve this ?

import arcpy
from arcpy import env
import os

env
.workspace =  arcpy.GetParameter(0)
fcList
= arcpy.ListFeatureClasses()

text_file
= open("C:/Output242.txt", "w")
for fc in fcList:
  
print fc.rstrip(".shp")
  text_file
.write(fc.rstrip(".shp"))

text_file
.close()

I am using the below code in C# NET for consuming this gpk service.

private string gpkPath = @"C:\Script2.gpk";
private string gpUrl = string.Empty;

private async void StartLocalGpService()
{
  
var gpService = new LocalGeoprocessingService(gpkPath, GeoprocessingServiceType.Execute);
  await gpService
.StartAsync();//Fails Here
  gpUrl
=  gpService.UrlGeoprocessingService;
  
var geoprocessor = new Geoprocessor(new Uri(gpUrl + "/Script2"));
}

0 Kudos
LucasDanzinger
Esri Frequent Contributor

If you are using the Developer license, then this is a different issue. The original issue in this thread was because it wasn't using Developer or Standard - it was using only a Basic license. I recommend you post in the .NET thread and someone in the .NET community will be able to better help troubleshoot.

0 Kudos