Select to view content in your preferred language

Channel Security error on MapManager

5809
17
Jump to solution
01-08-2014 10:04 AM
weeyeo
by
Emerging Contributor
I run into this error message on MapManager for ArcGIS View for Flex web application v3.5  when try to open web application to public to use.  I tested this on internal web browser and it works fine only happen if public try to access the site. 
Here is the error message I got:

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

Fault.info:Security error accessing url

Fault details:  Destination: Default:HTTP

I have crossdomain.xml on C:\inetpub\wwwroot folder

<?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="*" secure="false"/>
    <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>

Besides that, I have another custom flex web application open to public using the same secure map services, proxy, and crossdomain without any error or problem at all. Only on ArcGIS Viewer for Flex web application got error message.
Have any ideas for this error message?  Thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
wee y,

   Well you have two issue then. One is that you likely do not have your proxy configured correctly for the new site and second is you have the crossdomain.xml DNS lookup issue. I have given you advice already on how to avoid the need for the proxy.

You need to work with IT/System Admin to discover why you are having the DNS lookup issue.

Is your ArcGIS server and your web server on the same machine?

Have you read the documentation about using a proxy and where to add it in the main config.xml?

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Using_a_proxy_page/01m30000000w...

View solution in original post

0 Kudos
17 Replies
RobertScheitlin__GISP
MVP Emeritus
wee y,

   Are you using the publiclly accessable REST URLs for all your layer urls?
0 Kudos
weeyeo
by
Emerging Contributor
All my map services are secured and is not open to public.  I have a custom flex web application which is in older version (Flex 1.3) that open to public and able to access all secured map services through proxy.  The only different is the web application in newer(ArcGIS viewer for Flex v3.5) and older version.
Thinking might be cross domain but older version works fine.  Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
wee y,

   What I mean is in your main config.xml if you don't have an fully qualified address like:

http://machinename:8080/arcgis/rest/services/myMapservice

what you need (secured map service or not)
http://www.yourdomain.com:8080/arcgis/rest/services/myMapService
0 Kudos
weeyeo
by
Emerging Contributor
Here is the url on my config.xml file:
http://servername/agsGIS/rest/services/Election/MapServer and I am using the same url on my custom flex application, the map services show up.  Even thought url not using something you mentioned "http://www.yourdomain.com:8080/arcgis/rest/services/myMapService". 
My questions, is the configuration on ArcGIS viewer for Flex have to use different setting on REST URL?  Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
wee y,

   You are going to get security errors when your app is running on a url like: http://www.weey.com/mygisapp/index.html and then your main config has a url like http://servername/agsGIS/rest/services/Election/MapServer. As Flex see this as two different sources. That is why you need to have your config.xml use a url like http://www.weey.com/agsGIS/rest/services/Election/MapServer or like you did back in your old public app, use a proxy page.
0 Kudos
weeyeo
by
Emerging Contributor
Actually I am using proxy on both old public web application and current new ArcGIS view for Flex v 3.5.  Beside that, use the same REST url. I used Fiddler to see the network traffic, I found that, crossdomain.xml being highlight with DNS Lookup Failed message. My old Flex api site didn't see crossdomain issue and able to use proxy.
Do you think I missed some setting and configuration part on ArcGIS Viewer for Flex application?
Thank you for your time.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
wee y,

   Well you have two issue then. One is that you likely do not have your proxy configured correctly for the new site and second is you have the crossdomain.xml DNS lookup issue. I have given you advice already on how to avoid the need for the proxy.

You need to work with IT/System Admin to discover why you are having the DNS lookup issue.

Is your ArcGIS server and your web server on the same machine?

Have you read the documentation about using a proxy and where to add it in the main config.xml?

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Using_a_proxy_page/01m30000000w...
0 Kudos
weeyeo
by
Emerging Contributor
Found out is the httpproxy on config.xml problem.  Everything is working now.  Thank you very much.
0 Kudos
StephanieLong
Deactivated User
Hello,

I am experiencing a similar issue and hope to get some help here in this thread.

I am using Flexviewer 3.0 on a virtual machine with 2008 R2 and AGS 10.2.1.  I have Web Adaptor installed. 

When I open my flex map in a browser on another machine, I get the attached error message.  It opens/displays just fine when I go to my rest services and choose to open it in ArcGIS.com or ArcGIS Desktop.

My REST URL is accessible from this other machine as well.  It is http://<machinename>/ags/rest/services

I have my crossdomain.xml in the wwwroot and rootapp folders as well.

What would be the reason for being able to view the service in ArcGIS.com or ArcGIS Desktop, but not in a browser?



Thanks for any help you can provide.

-Stephanie
0 Kudos