Select to view content in your preferred language

"geoprocessor service failed: Execute operation is not allowed on this service"

989
1
06-16-2011 06:24 AM
EvanBossett
Emerging Contributor
I created a GP service.  It works fine from ArcMap. I published it to my ArcGIS Server and I can also run it successfully from the server in ArcMap.

However, I try to call it from my silverlight application and get the error message:
"geoprocessor service failed: Execute operation is not allowed on this service"

Anyone have any tips on how i can solve this?

I'm knew to all the Silverlight stuff so I'm struggling a bit under a tight deadline, but i did solve it:
"SubmitJobAsync"

b/c there was no execute operation of course
0 Kudos
1 Reply
ArokiyaJoseph
Deactivated User
Hi,

Silverlight API provides two different methods to run a gp task.

1. gpTask.ExecuteAsync for synchronous execution type (Example)
2. gpTask.SubmitJobAsync for asynchronous execution type (Example)

To find the execution type of your gp task, copy/paste the url that you used to initialize gp task in a browser. Look for its execution type property. That will help you determine the appropriate method you should use.
0 Kudos