Select to view content in your preferred language

Channel.Security.Error

4170
3
07-11-2012 01:21 PM
JanBenson
Deactivated User
I am trying to set up the Flex Application Builder on our web development server.  The setup works fine with everything on one server.  That is, having arcgis server, IIS, and flex application builder all on the same server.  However, the setup needs to work from our web development server which is different from our ArcGIS Server.  For the app builder setup I mounted a drive to our dev server (Y:\flexviewer), which is what I use for the Web Server Base Folder.  For the Web Server Base Folder URL I use http://name.xxx.xxx.xxx/flexviewer.  Under the GUI Basemaps & Operational Layers I added both.  The operational layers are navigated using http://server_full_name:6080/arcgis/rest/services.  When I get to the Design or Preview tab, I get error messages:  layer failed to load: Fault code: Channel.Security.Error, Fault info: Security error accessing url and Fault details: Destination: DefaultHTTP

I have a crossdomain.xml file on my ArcGIS Server (10.1) under inetpub\wwwroot.  The documentation (http://help.arcgis.com/en/webapi/flex/help/index.html#/Using_crossdomain_xml/017p0000001w000000/ ) states �??For 10.1, the location is C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\webapps\ROOT. Note that 10.1 comes with crossdomain.xml already installed, so unless you want to make changes, it should work successfully.�??  However I do not have a folder call ROOT, nor is there a crossdomain.xml file present.  There is a crossdomail.xml file under C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\contexts\rootapp.  I also tried placing a crossdomain.xml file at the root of our web development server with the same error message.

What am I doing wrong, or how can I get the flex app builder to work on our web development server?

Thanks!
Tags (2)
0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
Click the Application URL to open your Viewer in your browser and then use a tool like HttpFox to see the HTTP requests and responses. Look for the requests for /crossdomain.xml and make sure the response is good.
0 Kudos
JanBenson
Deactivated User
I added the HttpFox addon and managed to grab a screen shot before it went on to the Channel.Security.Error.  The name of the window is ViewerContainer, Some error occurred.  ExternalInterface doesn't work in StandAlone player.

I end up with a blank window.  I did a search on the error and came up with another posting (http://forums.arcgis.com/threads/51907-Some-error-occurred.-ExternalInterface-doesn-t-work-in-Standa....), but there is no solution. 

From HttpFox, I got a 401 Unauthorized.  I removed references to my host, but I think you can see the results.  For the highlighted crossdomain.xml line, the reference is http://servername.xxx.xxx/crossdomain.xml as opposed to the 6080 reference.

I hope this helps.  I've already failed at installing the web adapter as I get a 401.3 error and was told it is a bug.  I think it is a permissions issue as I had the web adapter working at pre-release.  I now suspect the two problems may be related.  However, in this case since it is development we are working from inside our network and do not need the web adapter yet.  Sigh.

Thanks for your help!
0 Kudos
JanBenson
Deactivated User
I ended up calling for technical support.  When the application was rebuilt it worked.  When the config.xml file (under your application name) was examined from the original application that failed, the operational layers were pointing to the pre-release server with a web adaptor.  Strange as I had updated the software and the application since then.  Anyway, all is working now.  Thank you very much.
0 Kudos