Select to view content in your preferred language

How to run an gp service published to ArcGIS Server from ArcGIS Pro SDK?

613
1
Jump to solution
03-03-2023 03:35 AM
Flayner
Occasional Contributor

I published my tool to ArcGIS Server as a GPServer.
I have tried running the tool using await Geoprocessing.ExecuteToolAsync(), but doesnt not work. I would like to know the correct way to run my tool.
tks

 

My code:  

string tool_path = @"C:\Data\Tools\agsfile.ags\Mytool/MyScript";

var gpResult = await Geoprocessing.ExecuteToolAsync(tool_path, null);

 

When I try use "OpenToolDialog", the message below occurs

Flayner_0-1677843291905.png

 

0 Kudos
1 Solution

Accepted Solutions
Flayner
Occasional Contributor

 

The problem has been solved.

It is necessary to uncheck the option indicated in the image below when creating the connection.

Flayner_0-1677852317592.png

 

 

View solution in original post

0 Kudos
1 Reply
Flayner
Occasional Contributor

 

The problem has been solved.

It is necessary to uncheck the option indicated in the image below when creating the connection.

Flayner_0-1677852317592.png

 

 

0 Kudos