I have a GPServer published as http://<server>/arcgis/rest/services/Geoprocessing/SpatialETLTool_July2014_GISPRD/GPServer/Spatial%2...
In trying to execute the GP in arcobjects, I keep getting a COM error (with no GetMessages). I am trying to track down where the problem lies but I am not clear on what is the toolbox and the tool name. Here's a sample of what I got using the above GPServer:
IGeoProcessor2 gp = new GeoProcessorClass();
gp.OverwriteOutput = true;
object sev = null;
IGeoProcessorResult2 results = (IGeoProcessorResult2)gp.Execute("Spatial ETL Tool", parameters, null);
string errorMsgs = gp.GetMessages(ref sev);
Is the toolbox and/or tool name wrong?
Did figure it out the hard way. I did not publish the GP service so when I looked at it in Catalog and in the tool's properties, I found the tool name to be SpatialETL22222. Go figure, I don't know how I would have gotten that information if all I had was the rest endpoint.