Select to view content in your preferred language

Channel Security Error Issue

2554
8
07-02-2013 11:27 AM
ElizabethB
Deactivated User
Hello-
I am attempting to create a Flex app data viewer.  I'm having issues understanding the security settings.  I can see the flex viewer on my server but on another workstation I am receiving this error: 

<layer> failed to load: Fault code:
Channel.Security.Error

Fault info: Security error accessing url

Fault details: Destination: DefaultHTTP

Here is the contents of my crossdomain.xml file located at C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\contexts\rootapp on the server:

<?xml version="1.0" ?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<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 cannot browse to this file in Internet Explorer.  What am I doing wrong? We are running ArcGIS 10.1  & IIS is running.  I am using ArcGIS Viewer for Flex Application Builder v3.3  The layers that are not being rendered are from the sde which I registered under ArcGIS Server.  From research I can guess this is a security setting that I need to change but I feel like I am missing some basic concept or step here. Any help is appreciated.
Tags (2)
0 Kudos
8 Replies
AnthonyGiles
Honored Contributor
Elizabeth,

What do you have as your server name in your URLs in the config.xml file?

Regards

Anthony
0 Kudos
ElizabethB
Deactivated User
Elizabeth,

What do you have as your server name in your URLs in the config.xml file?

Regards

Anthony


Hi Anthony-
Well, I have several config.xml files on the server but if you want me to look at the one in inetpub/wwwroot/flexviewers it has this as the server name:

<layer type="feature" label="Parcels" url="http://localhost:6080/arcgis/rest/services/MyMapService/MapServer/3" mode="onDemand" visible="true"/>
0 Kudos
AnthonyGiles
Honored Contributor
Elizabeth,

If you are trying to view your site on another machine that is not your server you need to replace localhost with your server name or IP address

Regards

Anthony
0 Kudos
ElizabethB
Deactivated User
Elizabeth,

If you are trying to view your site on another machine that is not your server you need to replace localhost with your server name or IP address

Regards

Anthony


In the config file? Or in the cross domain file?  I thought from my reading I couldn't use IP address in the cross domain file?  And do I have to stop & restart anything?
0 Kudos
AnthonyGiles
Honored Contributor
Elizabeth,

All instances of localhost In your config file need to be changed, also any widget config files that have localhost in them need changing,

Regards

Anthony
0 Kudos
ElizabethB
Deactivated User
Elizabeth,

All instances of localhost In your config file need to be changed, also any widget config files that have localhost in them need changing,

Regards

Anthony


Ok, thanks I will give this a try.
0 Kudos
ElizabethB
Deactivated User
Won't this cause an issue if I change the instances to local host? My gis server connection was made using localhost.  Do I need to create a new connection using the server name or IP address?
If I try to browse to http://localhost:6080/arcgis/rest/services/MyMapService/  (this is my test map service for this flex viewer project), it will not connect.  Any thoughts? Thanks!
0 Kudos
JeffLegato
Regular Contributor
We were having similar issues with a secured service in our internal flexviewer app and the fix was making sure the self signed certificate from our internal server was installed on the local box.
0 Kudos