Link to home
Start Free TrialLog in
Avatar of davidclark73
davidclark73

asked on

NetConnection.Call.Prohibited (cross domain?)

Hi i have a flash remoting project that i am trying to split over two servers - the swf files etc on one server the ASP.NET stuff on the other.

I have the .NET part running (hitting default.aspx gives me a blank page) but when the swf does a createGatewayConnection that call returns a code of "NetConnection.Call.Prohibited"

Starting the swf directly works okay, but loading it via the wev server is no good.

I am not really sure how to even start troubleshooting this.

thanks.
Avatar of James Peek
James Peek

The information you need to fix this is here:

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001097.html

Basically involves creating a policy file that lives on the server that provides the data saying its ok for the other machine to load data from it -- prevents other flash apps "stealing" swf or data files from other servers.  Doesn't apply when running in the development IDE though.

This article, while specifically for FLEX is also quite good:

http://www.macromedia.com/support/documentation/en/flex/1/deployingchecklist/deployingchecklist7.html

hth,

James
Avatar of davidclark73

ASKER

unfortunately whodini2k's response does not solve the problem - i had already put a crossdoman.xml file on the server.
in the end i have not solved this problem and have served the html with the flash in it from the same machine that has the ASP.NET remoting backend.
good for me.
thanks
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial