Flex harUI, I did check them. But that did not help. While delving more I observed that when I connect to home network I turn off the proxy in IE LAN settings (Tools -> Internet Options -> Connections -> LAN Settings). I mean in that pop up I leave only "Automatically Detect Settings" checked. Rest all are unchecked. And firefox works fine on my machine after that. As soon as I enter office network and turn on proxy settings I see the same trouble. What do I do? Neither myself nor our clients can turn off proxy for this app.
Flex harUI, following are my observations:
- This problem is now coming on IE 9 and chrome as well though on selective machines only.
- I put use-network=true in compiler arguments and even then I got the same problem.
- I also added my dev folder paths in C:\Users\<username>\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust\dev.trust.cfg but that too did not help.
- I used firebug and I found that
- swf loads successfully all the time without fail.
- after swf we load around 10 xmls in our app (and then images) and they stop loading at any arbitrary xml. For ex - sometimes the 1st xml is not loaded and sometimes the 4th is not loaded and so on... but we never reach the image loading stage. we are very much stuck loading the xmls.
- Also, going beyond dev environment, when we deploy the app on prod server then all these xmls are placed in the server folder (all the paths of these xmls are given relatively in the code as shown in the first post of this discussion) so technically Flash Player is not loading them from dev environment. FP is loading the swf from prod server and the xmls too frm prod server from the same location where swf is placed.
Flex harUI please advise what do I do now? Is there some change in FP 11 security?
I assume your goal is to deploy this on a production server. If so, then I would not run it from file:// and instead do all of your testing via a server. You can set up a localhost server on your development machine if needed. Then, make sure that flash.system.Security.sandboxType is “remote” by adding some small label to the app. Once you are set up in such an environment, see if you still have the problem and post the exact text of the errors including stack traces. The one in your original post probably came from some other sandbox type.
It can only be set by how you run your app. You must run it from http:// or https:// and not fiile:// or some local path. That’s why I said you should set up a server for testing. LocalTrusted has different security rules and some things won’t work or won’t work when you finally deploy to “remote”. So get set up properly in development and you will have fewer surprises in production.
Thanks Flex harUI.
I set up the test server (http://) and tested the app. I used these in mm.cfg to get the traces:
and following are the traces that I got in flashlog.txt:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: xmls/followUSImageXmlPath.xml
at mx.core::UIComponent/set initialized()
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: xmls/LocalesList.xml
at mx.core::UIComponent/set initialized()
Please recommend how do I do away with these errors so that xml files are successfully loaded on the server and app is run successfully.
Thanks again Flex harUI. I really appreciate your inputs.
I checked that link and this is the analysis:
- We connect using AMFChannel like this var channelEndpoint:AMFChannel=new AMFChannel("my-amf", "/Benchmarking/Gateway.aspx");
- As you can see in the code I had posted in my first post the path I'm giving for xmls is relative. I gave absolute path also but then too I got the same error.
- I then kept this crossdomain.xml on the server:
<?xml version="1.0" encoding="UTF-8" ?>
<allow-access-from domain="*" />
And the error remained the same.
4. I opened both xmls in Mozilla using their absolute urls that i was giving in code and they opnened perfectly.
What should I conclude now? Please note that app works smooth on IE, chrome and on 50% machines with Firefox.
It would be odd to use AMF to load XML files. Why aren’t you using URLLoader or HTTPService?
You are not getting a security error so crossdomain.xml probably isn’t a factor.
As you can tell from the article and by searching the internet, this problem happens to a lot of people. Judah’s article has helped a lot of folks, but some seem to have found other solutions. I am not an expert in resolving #2032 errors. You will have to research it on your own. The first thing I would do, however, is use a network monitor.
Oh probably I did not frame it properly :-( We are using AMF to make the connection and then URLLoader to load the xml like this:
public function loadAppXml():void
var urlLoad:URLLoader=new URLLoader();
I have been using a network monitor for this problem for about 2 days now. This is a screenshot of firebug. I have hidden parts of swf name, domain and Remote IP for confidentiality reasons.
Please share your ideas on it. All ideas are helpful....
Flex harUI, I solved the problem! And its solution is neither of which we discussed here :-) This is the synopsis.......
In our organization's corporate network we use automatic configuration script. That script was selectively allowing mozilla's (and in some cases Chrome and IE as well) access to our app. Why was it doing that we have no idea. But when I sat yesterday evening thinking about all those ideas we tried solving this I realized that the response of very first xml loading never comes which means that something stops it. As keeping a crossdomain.xml had not worked as well so I checked the proxy settings in my Laptop and unchecked Internet options -> Connections -> LAN Settings -> Use automatic configuration script in IE and it started working fine. Then i did the same on all machines I knew where app was not working mysteriously and this solution worked everywhere :-) I had a chat with out IT team and they do not have much problem in unchecking this coz it is used for accessing internal portal's redirect.
Thanks a lot Flex harUI. You helped a lot :-)