Add ImageServer to Silverlight App

1506
3
12-08-2010 03:33 AM
by Anonymous User
Not applicable
Original User: tgorrie

Having issues adding a ImageServer layer to a Silverlight app. I've added the layer via code and the xml (see below).

<esri:ArcGISImageServiceLayer ID="NAIPImageLayer" Url="http://gis.apfo.usda.gov/ArcGIS/rest/services/NAIP/Illinois_2010_1m_NC/ImageServer" />

Both methods result in the following error:
"Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application."

I've added the website too my cross domain file but it does not resolve the issue. Any other thoughts?

Thanks in advance.
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
The cross domain policy file must be on the server providing the map service (not on your server), so in your case in 'http://gis.apfo.usda.gov'.

If the map server has no cross domain file, you can use a proxy server and set the ProxyUrl property of your layer.
0 Kudos
by Anonymous User
Not applicable
Original User: tgorrie

Dominique, thanks for the reply.

Can and how do you use a proxyURL if the service is not a token service?

Thanks again.
0 Kudos
JenniferNery
Esri Regular Contributor
0 Kudos