The crossdomain.xml file resides on the remote server that you're trying to contact, so it should be accessible like this:
 
http://someserver:someport/crossdomain.xml
 
This file is not involved at compile time.
 
(Also, that is not a warning and it can't be ignored, it's a hard error informing you that it isn't allowed to access that domain).
 
(As an aside, note that it's generally not a good security practice to allow SQL statements to be specified externally to a service, such as in a URL. Consider parameterising the SQL statement and control the input parameters allowed to be specified).
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sachin gaur
Sent: Friday, April 28, 2006 8:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Help!

Hi ,
On your suggestion i tried to create crossdomain.xml and i uploaded in my root folder but still i am having the warning. I am using Flex Builder 2.0 Beta.
Or we have to put this crossdomain.xml when we are compiling the swf ? Please put some light on this

On 4/28/06, sachin gaur < [EMAIL PROTECTED]> wrote:
My swf file is on my machine on which the webserver is running and the URL I am accessing is of our bugtracking system(yeah, that is an external URL) which returns the xml file. So when i use this swf file from some other machine over http protocol then i have the above warning.


On 4/28/06, Matt Chotin < [EMAIL PROTECTED]> wrote:
Where is your SWF and where is the url that you're hitting?  Are they on
the same domain?  Are they on the same port?  It may be that you're
having crossdomain issues.

Matt


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On
Behalf Of compengguy
Sent: Thursday, April 27, 2006 6:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help!

Hi all,
I am making a page for my teamsite where i am sending the sql query in
the URL. which returns an xml file. When i compile and run this code
in Flex Builder 2.0 , It runs fine but when i take that swf file and
run it seperately It gives the following errors.

      *****************************************************
Error: faultCode:Channel.Security.Error faultString:'Security error
accessing url' faultDetail:'Destination: DefaultHTTP'
      at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
tHandler()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.messaging::MessageAgent/fault()
      at mx.messaging::Producer/fault()
      at ::DirectHTTPMessageResponder/securityErrorHandler()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
      ********************************************************
what i need to do,to not to have this warning because after the
warning it not fetches the data.

The code snippet is
<mx:HTTPService id="xml" url="" useProxy="false"/>

so can anybody suggest what i need to do ?

Thanks
Sachin Gaur


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to