Hi,I have setup a test Python script which simply accepts 2 parameters and which returns an email to the user. I have included the script in a Toolbox and have published the Toolbox. If I run the Python script manually, it works. If I run the tool using the REST interface, it works. When I try to run it from inside my Silverlight application, it just hangs. It does not even seem to make it to the server. Following are some pieces of the code I am using. Can anyone spot the problem?Thanks,Paul
string restServerURL = "http://myserver.name/ArcGIS/rest/services/";
Geoprocessor geoprocessorTask = null;
// Start timer for task
_processingTimer = new System.Windows.Threading.DispatcherTimer();
_processingTimer.Interval = new TimeSpan(0, 0, 0, 5, 0);
_processingTimer.Tick += ProcessingTimer_Tick;
_processingTimer.Start();
geoprocessorTask = new Geoprocessor(restServerURL + "TestSendEmail/GPServer/SendEmail");
geoprocessorTask.UpdateDelay = 5000;
geoprocessorTask.JobCompleted += GeoprocessorTask_JobCompleted;
List<GPParameter> parameters = new List<GPParameter>();
// Pass the user's email to send them the zip file
parameters.Add(new GPString("EmailTo", tbEmail.Text));
// Pass the layer names to the Geoprocessing service
parameters.Add(new GPString("DesiredLayers", _layerNames));
geoprocessorTask.SubmitJobAsync(parameters);