0
votes

I need to access an ASP.Net2 page from Action Script 3.0 and I wrote the code in .fla file that access the asp.net page but there is a problem in the accessing it reports to me the following error :

Error opening URL 'http://localhost/Trial/Default.aspx' Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://localhost/Trial/Default.aspx at Script1/sendSQLXML() at Script1$iinit()

and after searching I found that it is a problem related to Cross Domain policy so I created an XML file called Crossdomain.xml with the following code:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">


<cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*" secure="false"/>
    <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>

and i don't know how to use it from ACS3 and where to put it Note: i run the Asp.Net2 page in the IIS

4
This is not related to the cross-domain policy file. - bzlm
I have solved the problem and the policy file is put when accessing the server remotely but in my problem i found that the data sent in the URL cause the problem due to some wrong sytax that is not accepted in the URL.thx alot for every one and i am too grateful for ur great attention - Ahmy

4 Answers

0
votes

IF you're working localy (http://localhost/Tri...), i'm not sure that the problem come from some CrossDomain issues...

0
votes

Typically the crossdomain file gets placed at the root of the server, if you are running locally you shouldn't be having crossdomain issues, but you might want to try placing it in c:\inetput\wwwroot\ and see if that addresses your issue.

0
votes

crossdomain.xml gets put at the root of the server you are trying to access. that's the default location such that you won't need to call Security.loadPolicyFile()