Select to view content in your preferred language

Silverlight application is not able to consume the service after upgrading the ArcGIS server to 10.5

2114
2
02-01-2017 05:04 AM
Abdul_Raheem
Deactivated User

I have upgraded my ArcGIS server to 10.5 and published all the services that was running on the old version. I have the the same REST URL for the newly published service as of old service and I have stopped the old service in the older version of ArcGIS. 

 

When I am trying to consume the new service published on ArcGIS 10.5 using the REST URL it is not being initialized in the silverlight application and giving the message "A security exception occurred while trying to connect to the REST endpoint. Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application.". When I am hitting the same REST URL on browser I am getting the data for the published service. I have checked for the proxy pages(crossdomain.xml and clientaccesspolicy.xml) on my server and they both are set to allow the request and there is no problem with the proxy. Since I don't have access to the server on which ArcGIS 10.5 is installed I am not sure of the proxy pages and their settings. 

 

Could it be the problem with cross domain issue on the server on which this service is published? if so what shall I do to let the Siverlight application to consume the service.

 

NOTE: I am using Silverlight api 3 for ArcGIS and the application is running on my machine and ArcGIS 10.5  is installed on remote server.

0 Kudos
2 Replies
RandallWilliams
Esri Regular Contributor

Where is the clientaccesspolicy.xml file located? It should be at the root of the server that hosts your web adaptor or proxy, like http://sampleserver6.arcgisonline.com/clientaccesspolicy.xml. If open your application while a debugger or intercepting proxy like Fiddler is running, so you see that the clientccesspolicy file on the GIS Server is being accessed?

0 Kudos
Abdul_Raheem
Deactivated User

Thanks for the help. 

I misplaced clientaccesspolicy.xml on my server. I now placed it at the root of my server and the part of the code was also missing. I now corrected it to resolve the issue with clientaccesspolicy file.

0 Kudos