I currently have Server 10.1 installed and the Flex App Builder installed on the same machine.
We created a flex application that loads several operational layers that reside on the same server.
When I view the application locally from the server (url: http://127.0.0.1/flexviewers/North%20Carolina/ ) , the layers are loading correctly. However, when I try to view the application from outside of the network in which the server is located, the layers are not loading.
I get "...layer failed to load: Fault Code: Channel.Security.Error" I also get " layer failed to load: Fault code: 500 "
In my limited research, I found discussions that brought up crossdomain.xml, but in our case, the app is installed and ran on the same server. I also read that with 10.1, the crossdomain.xml is already setup. I verified that it was indeed there and everything looked fine to my untrained eye.
IP address 127.0.0.1 is your local host loop back address which will probably work when you are using your application locally but not when trying to do it over the network. You need to either use your servers true IP address or server name.
I didn't do a good job explaining and I'm sorry for that. When I access it from outside the network I change the ip# to the ip# of the server and do not use the loopback.
If you use the URL for one of your services in a browser do you get access to the REST endpoint? If not you may not have the URL correct
Anthony
This is a good test to see if your services are accessible externally, can you get to your REST services directory outside of the network? From what you described, it sounds like the answer is probably no. The correct work flow for making them external is to install a component called the web adaptor which allows ArcGIS for Server to work with your own web server to expose REST and SOAP services. Do you have the web adaptor installed?