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"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
<domain uri="http://*"/>
<domain uri="https://*"/>
</allow-from>
<grant-to>
<resource include-subpaths="true" path="/"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from secure="false" domain="*"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from secure="false" domain="*" headers="*"/>
<allow-https-request-headers-from secure="false" domain="*" headers="*"/>
</cross-domain-policy>
Solved! Go to Solution.
IE 11 can generate a .har. Press F12, repro the issue, and click the highlighted icon.
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?
Thank you for the reply, Randall.
We are using the web adaptor.......
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.
IIS
I have IE 11 which I don't believe has the ability to generate the HAR file.
IE 11 can generate a .har. Press F12, repro the issue, and click the highlighted icon.
It generates an XML file. Is that okay?
I'll reply via email.
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.
Sweet! Ignore email then!