Select to view content in your preferred language

Security Error Won't Let Operational Layers Be Added

3603
4
02-17-2012 12:13 PM
NickMarino
New Contributor
I am an emergency manager (not a GIS professional) working on building my first app with the ArcGIS Viewer for Flex Application Builder. I chose the option to use 'Basemaps & Operational Layers' so I could populate some our county's information into the app, but run into a problem when I try to add ANY operational layers. I have the 'ArcGIS Server' button selected and entered the url I was given from our GIS department (http://xxxxxxxxxxxx.gov/arcgis/rest/services), which brings up a list of folders that are available. I then select what layer(s) I want to include in the app (I've tried one, some, and many combinations but keep getting the same problem. By the time I get to 'Design' or 'Preview' I get an error box that states the following (also see attachment):

---------------------------------------------------------
[MapManager]                                                          
---------------------------------------------------------
xxx layer failed to load: Fault code: Channel.Security.Error

Fault info: Security error accessing url

Fault details: Destination: DefaultHTTP

---------------------------------------------------------

Has anyone else encountered a similar problem? If so, or if you know how to resolve this, please chime in.

Thanks!
Nick
Tags (2)
0 Kudos
4 Replies
by Anonymous User
Not applicable
Hi Nick,

Do you have a crossdomain file on the root of your web server ?  To access data from a different server other than the one hosting your Flex application, the remote server needs to have a cross-domain file in the root directory.  If you are using ArcGIS Server .NET , add a crossdomain.xml to your web server's root directory, for example, C:\inetpub\wwwroot.

More information can be found at the link below: 
http://help.arcgis.com/en/webapi/flex/help/index.html#/Using_crossdomain_xml/017p0000001w000000/
0 Kudos
NickMarino
New Contributor
Hi Nick,

Do you have a crossdomain file on the root of your web server ?  To access data from a different server other than the one hosting your Flex application, the remote server needs to have a cross-domain file in the root directory.  If you are using ArcGIS Server .NET , add a crossdomain.xml to your web server's root directory, for example, C:\inetpub\wwwroot.

More information can be found at the link below: 
http://help.arcgis.com/en/webapi/flex/help/index.html#/Using_crossdomain_xml/017p0000001w000000/


Ok, thank you...I forwarded this to our GIS guru. Just to make sure though, I'm not using the API just yet (I don't think)...our IT installed the 'Application Builder' that comes up as an option when installing the 'ArcGIS Viewer for Flex'...does this make a difference at all?
0 Kudos
by Anonymous User
Not applicable
Hi Nick,

No, installing the Application Builder does not make a difference. Are you still running into the same error message?
0 Kudos
ManoFry
Deactivated User
Howdy. I've got this error too, been trying to make it work since yesterday. The error doesn't show on my computer (localhost), which is why I thought it was perfect, but it does show if anyone else accesses it (even from LAN). Even though I see no sense in it, I've added crossdomain.xml to wwwroot, wwwroot/arcgis, wwwroot/flexviewers, all viewers etc... why would it give me an error if the flexviewer application is in the same computer as ArcGIS server? No change.

"Channel.Security.Error"

"Fault info: Security error accessing url
Fault details: Destination: DefaultHTTP"

This is inside the crossdomain.xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*"/>
</cross-domain-policy>


Why would it give public an error if the flexviewer folder is in the same wwwroot as ArcGIS server?

wwwroot is visible to Everyone.

Any help is very appreciated.

EDIT: I had accessed the Operational Layer's address in ArcGIS Viewer Flex Application Builder through localhost instead of public address. Changed it to public address. Works now.
0 Kudos