Layer failed to load: Fault code: Channel.Security.Error - AppBuilder Application

7220
10
05-15-2013 07:15 AM
Scott_Russell
New Contributor III
I built an application using AppBuilder and we hosted it within our firewall over the network successfully. We recently leased an instace on Amazon EC2 so we could push our application to the web. The URL resolves perfectly from the host server machine, but when I try to resolve the URL from a user machine, the attached error message pops up:

WebMapAmazon layer failed to load: Fault code: Channel.Security.Error

Fault info: Security error accessing url

Fault details: Destination: DefaultHTTP


[ATTACH=CONFIG]24326[/ATTACH]

There is also an error that reads the same but says that it cannot access my basemap file, which is local data that I uploaded with the .sd file.

Most of my googling has led me to believe it is a Crossdomain policy issue. I have the following .xml document residing in my wwwroot folder:


<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>


I believe that this 'should' be working, but that I'm missing something here.

Any help would be greatly appreciated.


EDIT: It may be worth noting that I've created the service using an .sd file which contains all of the relevant data (like map packaging), it is not kept separately within SDE on the amazon instance.

Thanks,
Scott
Tags (2)
0 Kudos
10 Replies
BjornSvensson
Esri Regular Contributor
It sounds like a crossdomain issue.

The crossdomain.xml file needs to be on the server with your application is trying to access, i.e. your amazon instance.
See http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Deploying_an_application/017p00000...
0 Kudos
Scott_Russell
New Contributor III
It sounds like a crossdomain issue.

The crossdomain.xml file needs to be on the server with your application is trying to access, i.e. your amazon instance.
See http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Deploying_an_application/017p00000...


This is why I'm confused.  I have the crossdomain.xml file residing within the wwwroot folder of the machine that is hosting ArcGIS Server in the Amazon instance and I'm still having problems.
0 Kudos
BjornSvensson
Esri Regular Contributor
So your services are accessed as http://instance/arcgis/rest/services/... (not using a port number, and not using httpS)?
And you can see the crossdomain file at http://instance/crossdomain.xml ?
0 Kudos
Scott_Russell
New Contributor III
So your services are accessed as http://instance/arcgis/rest/services/... (not using a port number, and not using httpS)?
And you can see the crossdomain file at http://instance/crossdomain.xml ?


Yes that is correct, to both questions.  I just double-checked now.  I'm starting to think its a problem with packaging the data into an .sd file, rather than uploading the physical data to SDE on the Amazon instance and publishing the service without creating an .sd file.  But then again, that should technically work fine, according to ESRI documentation so I'm at a loss.
0 Kudos
Scott_Russell
New Contributor III
I tried creating an application with Flexviewer using an .sd file inside of our firewall on our local ArcGIS Server instance and was able to create the same error.  I've come to the conclusion that publishing a service using an .sd file is not compatible with ArcGIS Viewer for Flex.
0 Kudos
TomRipley
New Contributor II
I tried creating an application with Flexviewer using an .sd file inside of our firewall on our local ArcGIS Server instance and was able to create the same error.  I've come to the conclusion that publishing a service using an .sd file is not compatible with ArcGIS Viewer for Flex.


I have the exact same problem, is this now an official ESRI bug ???
0 Kudos
GISDev1
Occasional Contributor III
I successfully consume 10.1.1 REST services published via an .sd in the Flex API v3.3 just fine.
0 Kudos
MervynLotter
Occasional Contributor III
Hi there

I also received the same error but that was because I was copying across the URL from the server as a secured �??https�?� when all that was required was �??http�?�. Simply changing this corrected the error.

I hope this help.

Regards,
Mervyn
0 Kudos
WillHughes1
Occasional Contributor II
Thanks Bjorn! This worked for me. All I had to do was copy the crossdomain.xml file from
C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\contexts\rootapp
to
my webserver's root directory (ex. C:\inetpub\wwwroot)

Will
0 Kudos