Since your SWF is being loaded from disk (as per the error message) adding localhost to the domain list won't help because localhost != file:// URI. Try just opening it all the way up for right now.
<?xml version="1.0"?> <!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> Does that work for you? -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In [email protected], "mvbaffa" <[EMAIL PROTECTED]> wrote: > > Hi All, > > I have a very strange deployment problem with my Flex 2.0 > application. I hope someone can help. > > I have developed an application with AMFPHP. In my development > machine my services reside in my > wwwroot (I use IIS) directory and I have created a Virtual Directory > pointing to it. > My Flex application is in a directory in drive D:. > > Everything is working OK and now I have to move the application to > my production server. I have put > my services in wwwroot of this server and I have also created the > virtual directory and my Flex > application is in a directory in Drive C: > > The AMFPHP gateway is in my localhost so Flex application and > services are in the same machine. But in my > production server the application is not running. Even when I have > installed flex and run the application > from inside it I receive the same error. > > The error is the following: > > Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: > Security sandbox violation: > file://C:\XXX\YYY\bin\ZZZ.swf cannot load data from > http://localhost/KKK/gateway.php. > > Where XXX: is my Flex Applications Directory > YYYY: is my Application Directory > ZZZ: my Flex Application > KKK: Virtual Directory where the services reside > > To try to resolve the problem I have put a crossdomain.xml in the > wwwroot directory of my IIS. The > crossdomain content is listed below: > > <?xml version="1.0"?> > > <!DOCTYPE cross-domain-policy > SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> > <cross-domain-policy> > <allow-access-from domain="localhost" /> > <allow-access-from domain="127.0.0.1" /> > <allow-access-from domain="172.16.10.38" /> > </cross-domain-policy> > > And it is still with the same error. I don't know what to do. > > Thanks in advance > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

