Access to Map Service breaks for Silverlight app after upgrade to 10.5

1294
9
Jump to solution
09-25-2017 07:54 AM
by Anonymous User
Not applicable

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>

0 Kudos
1 Solution

Accepted Solutions
RandallWilliams
Esri Regular Contributor

IE 11 can generate a .har. Press F12, repro the issue, and click the highlighted icon.

View solution in original post

0 Kudos
9 Replies
RandallWilliams
Esri Regular Contributor

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?

https://community.esri.com/thread/189612-silverlight-application-is-not-able-to-consume-the-service-...

0 Kudos
by Anonymous User
Not applicable

Thank you for the reply, Randall. 

We are using the web adaptor.......

0 Kudos
RandallWilliams
Esri Regular Contributor

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.

0 Kudos
by Anonymous User
Not applicable

IIS

I have IE 11 which I don't believe has the ability to generate the HAR file.

0 Kudos
RandallWilliams
Esri Regular Contributor

IE 11 can generate a .har. Press F12, repro the issue, and click the highlighted icon.

0 Kudos
by Anonymous User
Not applicable

It generates an XML file. Is that okay?

0 Kudos
RandallWilliams
Esri Regular Contributor

I'll reply via email.

0 Kudos
by Anonymous User
Not applicable

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.

0 Kudos
RandallWilliams
Esri Regular Contributor

Sweet! Ignore email then!

0 Kudos