Programmatically publish image service

1510
3
12-28-2016 09:45 AM
springzhang
New Contributor II

I used C# + ArcObjects to publish image service. I can successfully publish the image service. However, the data source of the image service is empty, as shown in the picture below. Thereby, the image service can not be visualized. 

But I checked the image service configuration file, in which the path has been defined

      "path": "\\\\server\\test.gdb\\Vulnerability",

I have registered this gdb on the arcgis server. 

Any ideas how to solve the problem?

0 Kudos
3 Replies
springzhang
New Contributor II

does any one have a suggestion? thx

0 Kudos
AnthonyKobah
Occasional Contributor

Hi Spring,

1. What type of image files are you publishing?

2. What happens when you try to view the Image Service at REST via the JavaScript Viewer?

Does it just come up blank or your get checkered patterns?

0 Kudos
springzhang
New Contributor II

Hi Anthony,

thanks so much for the reply. I used TIFF files. It just came up blank when viewing it at REST via the Javascript Viewer and ArcGIS Online. 

But strangely, I checked it just now. The published image service works!!! I can see the image at REST API. No idea why...

0 Kudos