Publish an image service and set configurations


PurposeThis sample shows how to programmatically publish an image service and set configuration parameters based on data source type (mosaic dataset, raster dataset, compiled image service definition, and raster layer). It illustrates how to connect to ArcGIS Server, create a configuration, set parameters based on data source type, enable Web capabilities, enable Web Coverage Service (WCS) and Web Map Service (WMS), and add the configuration to ArcGIS Server. Additional functionalities include starting, stopping, pausing, and deleting an image service.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start Visual Studio, open the solution file, and compile the program.
  2. Run isconfig from the command line environment. To run this utility, you need to be in the agsadmin group on ArcGIS Server and be able to access the data source. See Additional information below.

Additional information

  • Usage 1: isconfig -o publish -h <host> -d <datapath> -n <configName>
  • Usage 2: isconfig -o <delete|start|stop|pause> -h <host> -n <configName>
  • Usage 3: isconfig -o <list> -h <host>
 
  • Example 1: isconfig -o publish -h localhost -d \\myserver\data\test.gdb\mdtest -n mdtest
  • Example 2: isconfig -o stop -h myservername -n mdtest
  • Example 3: isconfig -o list -h myservername


ISConfig.cs Source code for configuring an image service.
Download the C# files
ISConfig.vb Source code for configuring an image service.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcInfo ArcInfo
ArcEditor ArcEditor
ArcView ArcView
Engine Developer Kit Engine Runtime