This content has been marked as final. Show 6 replies
I'd recommend to start from the following article:
especially this part:
I'd say the trusted.cfg is not applicable in your case (I never heard about this file before) - you should supply a socket policy file.
Also. FP behaves differently, depending on version. Update to version 22.214.171.124 to see the behaviour described in the article.
And the last thing - check that can connect simple telnet client to the server on the given port, cause it could be closed on firewall.
thanks your reply,
I had used other language to write a client program that can connect to server successfully, so it must not firewall problem. I also think it is security issue, but it is difficult to locate how to set to allow socket connection in Flex. I found a lot of material about it in Adobe help, but still fail to use it client program to connect server program via IIS.
I had tired to add a policy file "crossdomail.xml" in IIS server side, but it still fail connection.
Content as follow:
<allow-access-from domain="*" to-ports="6000" secure="true"/>
and the Action Script also use Security.loadPolicyFile(" http://testserver/FlexWebImport/crossdomain.xml");
how can I solve it?
Please help!! orz
According to the new standards your server should be able to supply socket policy file on port 843.
His means that when you create XMLSocket object and do connect() (no need in Security.loadPolicy() if policy file is located on the same server) FP tries to get policy file from the server.
Server should be able to process the following request:
and send back the policy file.
After FP gets the file which allows the connection on the given port it makes the connection.
You can see what is going on in the policy.log.
How to turn the logging on is described here:
So first thing you have to do - add more functionality to you server and serve this socket policy file.
If you have more questions -you are welcome to ask. I am currently doing the same thing :)
I don't have a crossdomain.xml in my webapp, but not sure that I need it because clearly one of the project run fine without it.
I have 2 projects stored in the SAME file system location and calling the SAME webapp/webpage. One of them works, the other gets "Security error accessing url".
I even copied the entire mxml page content from the working project to the none-working, and vise versa. That one project just keeps giving that error.
Is there a project property I need to set?