I have created a gpk using the below python script in ArcGIS 10.3.When trying to consume as Local geoprocessing service I get below errors.
import arcpyfrom arcpy import envimport osenv.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"));}
أكثر...
- The application is running using developer license.The license isvalid for development and testing only.
- Geoprocessor service failed.LocalServer start failed.executable not found.
import arcpyfrom arcpy import envimport osenv.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"));}
أكثر...