Have a legacy Silverlight app that was working correct, accessing a dynamic, self-hosted map service based on AGS 10.4.1. After upgrading AGS to 10.5, I receive the following message:
Failed to initialize ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer DynamicLayer: A security exception occured 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.
However....nothing has changed from the 10.4.1 setup. The Crossdomain and Clientaccesspolicy XML files are in place and were unchanged. Does AGS 10.5 no longer support Silverlight apps?
XML files are below......
<?xml version="1.0" encoding="UTF-8"?>
<resource include-subpaths="true" path="/"/>
<allow-access-from secure="false" domain="*"/>
<allow-http-request-headers-from secure="false" domain="*" headers="*"/>
<allow-https-request-headers-from secure="false" domain="*" headers="*"/>
Solved! Go to Solution.
There's nothing I can think of that would prevent this using SL - while we prefer JS and don't support the SL APIs any more, we didn't explicitly block SL as far as I'm aware. Do you connect directly to the GIS Server, or do you use the web adaptor as your front end?
Are you using the IIS or Java web adaptor? any way you can DM me a session file?
Using IE, press F12 and reproduce the issue
In the upper right of the debugger, there's an icon that looks like a floppy disk (next to the play (triangle) and stop (square) icons.
You'll be prompted to save a .har file
if you can DM me that file, I'll have a look.
If you're in a secured/sensitive environment, screenshots with redacted hostnames might work.
Okay, figured it out....tracing through that XML file helped. Thanks for the suggestion, Randall. Turns out that the crossdomain and clientaccesspolicy xml files on the GIS Server side of things had been renamed. Ugh.