Channel.Security.Error from ArcGIS Sever MapManager

16154
35
Jump to solution
01-27-2012 08:04 AM
ThomasMcCracken
New Contributor III
Hi everyone,

I get an error window when I open my Flex Viewer application that says:

"Layername layer failed to load: Fault code: Channel.Security.Error
Fault info: Security error accessing url
Fault details:  Destination:  DefaultHTTP

The crossdomain.xml is on the GIS and web server and is correct.  In fact, another
GIS Server with the exact same crossdomain.xml brings in the service in the app just fine.  I tested using both SOAP and REST services and get the same result.  I also get the same error from my local web client on my machine rather than the web server so I'm not sure what's going on.  Any suggestions?

Thanks,

Thomas McCracken
GIS Analyst
Georgia Power Company
Tags (2)
0 Kudos
35 Replies
Bakht_AliMohammad_Khan
New Contributor
Thanks you very much.. I do the same as you give instructions and replaced the crossdomain.xml file in wwwroot folder on my server  but nothing happen. I have still this problem.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bakht Ali Mohammad Khan,

  You need to use a tool like fiddler or firebug and see if the request for the crossdomain.xml is successful or not. Also you need to be sure you are not mixing ip addresses and machine names you have to use one or the other.
0 Kudos
Bakht_AliMohammad_Khan
New Contributor
ok. Thanks you very much.. I will try once again..
0 Kudos
Bakht_AliMohammad_Khan
New Contributor
My problem is solved.. by replacing local host with machine name

url="http://Bakht-PC/ArcGIS/rest/services/Qasiba_BoundaryNew/MapServer"/>


Thanks...
0 Kudos
DeeptiPuri
New Contributor
Hi There

We have a offsite contractor building Flex application for our company. He hosts application on his server and ArcGIS server is on our
internal server. He uses map services by with external IP and crossdomain file. He built on version 2.3.1 and everything was working fine. Recently he migrated to Flexviewer version 3.0 and we are getting the same error:

[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]

It is working fine on his end but we are getting this error. The directory with 2.3.1 is working fine and we can see all the map services

Thanks
0 Kudos
MichaelZierten
New Contributor
Hi There

We have a offsite contractor building Flex application for our company. He hosts application on his server and ArcGIS server is on our
internal server. He uses map services by with external IP and crossdomain file. He built on version 2.3.1 and everything was working fine. Recently he migrated to Flexviewer version 3.0 and we are getting the same error:

[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]

It is working fine on his end but we are getting this error. The directory with 2.3.1 is working fine and we can see all the map services

Thanks


I have had the same experience. I am using this with a reverse proxy, and I am experiencing the same error with Flexviewer 3.0 applications.  It appears to be an issue with 3.0.  I have tried it with crossdomain.xml on the reverse proxy machine and with an apache config that points it to the internal server.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Well the problem is definitely not 3.0 as I am using a reverse proxy (Apache) and FV 3.0 and it is running fine. The biggest mistake people make when using a reverse proxy is they use the internal server name in their Flex Viewer main config.xml instead of the external fully qualified server name that they are suppose to use. If you already have the external name of your ArcGIS Server configured in your main config.xml them let me know and I will attempt to provide more guidance.
0 Kudos
StephanieSnider
Occasional Contributor III
I had to also allow headers in my cross domain file.  This worked for me:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>


This suggestion comes from the Adobe Community Forums at http://forums.adobe.com/thread/223999.   Also after updating the crossdomain file, I recycled the default app pool in IIS.  Closed and reopened the ArcGIS Viewer for Flex 3.1.  No more channel security error.
0 Kudos
PiotrSkworzec
New Contributor III
Hi,

I have the same problem with crossdomain.xml.
I've been using ArcViewer for FLEX.
All my REST services are on HTTPS server.
I can see my services on my browser i.e. https://myserver/ArcGIS/rest/services/TEST1/MapServer
I can also see in my browser https://myserver/crossdomain.xml

When I run Filddler I recieve crossdomain.xml 403 error. Why?
Firebug says crossdomain.xml aborted.

Crossdomain.xml
<cross-domain-policy>
     <site-control permitted-cross-domain-policies="all"/>
     <allow-access-from domain="*" to-ports="*"/>
     <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>


I have Windows Server IIS7.5 ASP.NET 3.5
0 Kudos
UmarSharif
New Contributor
I am developing a flex application. I am trying to get xml data from cross domain. Data service is at linux machine. It works fine in development mode. But as I host swf file even on same development machine, it gives channelsecurity.error I have placed crossdomain.xml at root of the flex server and it is working ok. But still I am getting channelsecurity.error
0 Kudos