Configuring the Geoprocessing task
When you add a Geoprocessing task to your application in Manager, remember these required steps:
- First add the geoprocessing service to the list of supporting services. Above the list of available tasks in Manager, click the Supporting Services link, click Add, and browse to your geoprocessing service.
- Click OK to close the Supporting Services dialog box.
- Back at the list of tasks, select your Geoprocessing task and click Configure.
- Set the Task Definition by expanding the geoprocessing service and selecting one tool from it. This is the tool that will be associated with this Geoprocessing task. To make other tools available, you can add other Geoprocessing tasks.
The Task Configuration dialog box also has a setting for the virtual directory where the result data file will be written. Set this property if your users will be running asynchronous tasks whose results will need to be viewed in a future browser session.
The path is relative to your IIS Web Site, not your local file system. For example, you might have a virtual directory configured on C:\arcgisserver\arcgisoutput that you typically access through the URL http://server/arcgisoutput. In this case, you would put /arcgisoutput as the path where the result information would be written.
The virtual directory must have read and write access and Scripts Only execute permissions enabled. You can set these permissions on the virtual directory's Properties dialog box in IIS Manager.