Select to view content in your preferred language

Silverlight and ArcGIS server services

682
4
05-07-2012 05:49 AM
josephfarah
Deactivated User
Hi,

I am facing a problem displaying the arcgis service that i prepared using arcgis server on my silverlight viewer.
Silverlight is installed on my computer which is part of the network.
ArcGIS server is installed on the server who has 10.14.3.5 as IP.
I am using the following URL http://10.14.3.5/arcgis/rest/services but it is not working.
Is there anything that i need to modify...
Any help?

Regards,
Joseph
0 Kudos
4 Replies
KatherineDalton
Esri Regular Contributor
Hi Joseph,

A few things to try -- Can you navigate to the Url in a browser and see the services directory? Can you access the services when creating a map using ArcGIS Online? And can you try running Fiddler and see what the response is?

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
josephfarah
Deactivated User
Hi Katy,

I try to navigate to the URL... it is working i can see the services directory...
In ArcGIS online, i received an error message "The layer, http://10.14.3.5/arcgis/rest/services/sde, cannot be added to the map"...
Fiddler mention an error as shown in the attached image.

Thanks and my regards,
Joseph
0 Kudos
KatherineDalton
Esri Regular Contributor
Hi Joseph,

It looks like you need the clientaccesspolicy.xml file - see our FAQ" rel="nofollow" target="_blank">http://help.arcgis.com/en/webapps/silverlightviewer/help/index.h... page.

To access data from a remote server, the remote server needs to have a clientaccesspolicy.xml file in the web server's root directory (for example, c:\inetpub\wwwroot). The ArcGIS Viewer for Silverlight is built on the Microsoft Silverlight platform. For security reasons, a Web browser is not allowed to access data that resides outside the exact Web domain where Silverlight application originated. However, a Silverlight application can load data across domains if permission is granted from the server. This is accomplished by having a small clientaccesspolicy.xml file on the remote server that permits Silverlight to connect to services on that server. For additional information, read the topic Making" rel="nofollow" target="_blank">http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx]... a Service Available Across Domain Boundaries. For more information on the structure and function of a clientaccesspolicy.xml file, read the topic Network" rel="nofollow" target="_blank">http://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx... Security Access Restrictions in Silverlight. As an example, you can also view the policy file used by ArcGIS Online:http://services.arcgisonline.com/clientaccesspolicy.xml.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
josephfarah
Deactivated User
Hi Katy,

Thanks for your reply...
It is working fine.

Thanks again
Regards,
Joseph
0 Kudos