[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]

552 views
Skip to first unread message

Sergei

unread,
Jun 3, 2009, 12:50:28 AM6/3/09
to Flex India Community
After deployment of my Flex application I can no longer read an XML
(Amazon S3 url http://rademodata.s3.amazonaws.com/nwsales.xml - just
in case if you want to try) file using the HttpService.
I did put a crossdomain.xml into the root folder of the web app (it
is a virtual folder on IIS) - did not help.

On the other hand application works fine in the development
environment.

Here is a copy of my crossdomain.xml file

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/
dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

If you know the solution, could you let me know how to crack this nut,
please.

Cheers,
Sergei.

Ravi Mishra

unread,
Jun 3, 2009, 7:04:18 AM6/3/09
to Flex India Community
Hi Sergei,

On the creationComplete of your application try calling the following:

Security.loadPolicyFile("path to crossdomain file");

HTH,

-Ravi

On Jun 3, 9:50 am, Sergei <s.dum...@gmail.com> wrote:
> After deployment of my Flex application I can no longer read an XML
> (Amazon S3 url  http://rademodata.s3.amazonaws.com/nwsales.xml- just

Sergei

unread,
Jun 4, 2009, 8:36:19 AM6/4/09
to Flex India Community
Ravi, hi

Thanks for the prompt reply. Unfortunately your suggestion did not
work either.
Furthermore this, Security.loadPolicyFile("path to crossdomain file");
statement only requires for non-standard crossdomain files.
The standard ones should be loaded automatically.

Did you actually faced this problem yourself and managed to solve it?
May I should alter some IIS setting?

Thanks again,
Sergei.

Mayur Bais

unread,
Jun 4, 2009, 2:36:45 PM6/4/09
to flex_...@googlegroups.com
hey,
for accessing content from amazon s3, you need to have a crossdomain.xml file on s3 . and as far as i know, s3 do not have any such kind of file hosted there on their server, and also  keeping the file in any of the buckets that we create on amazon s3, do not help.
there is something called as Security.allowDomain(*) , try this.. but not sure if that would help too

chandra

unread,
Jul 7, 2009, 10:06:28 AM7/7/09
to Flex India Community
Hi all

when i try to open the swf file from the bin-release folder i am
getting this error
my application is integrated with php which returns xml
from that xml resources are getting . bu

Utkarsh kaushal

unread,
Jul 7, 2009, 1:34:47 PM7/7/09
to flex_...@googlegroups.com
This problem may be due to accessing object/services from domains other than where application is residing.
Sandbox security voilation generally throws this error try using crossdomain.xml or proxy server if you are trying to access services.
HTH,
Kay Kay.
Reply all
Reply to author
Forward
0 new messages