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
Solved! Go to Solution.
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
Michael-
Can you please attach your code to this thread?
Thanks,
Luke
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
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
It works! Thank you very much!
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.
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"));
}
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.