But there IS a crossdomain.xml file. When I run the app in a browser, it works fine. And it works fine normally in the IDE.
I have the field under Unity->Project Settings->Editor "WWW Security Emulation settings" set to http://localhost/. I can confirm that http://localhost/crossdomain.xml exists.
Can you instruct me how to get the system to connect under the debugger?
Here's the exception:
Code: Select all
On Connection callback got: False (error : <General exception on connection: Unable to connect, as no valid crossdomain policy was found at System.Net.Sockets.Socket.Connect_internal (IntPtr sock, System.Net.SocketAddress sa, System.Int32& error, Boolean requireSocketPolicyFile) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.Net.IPAddress address, Int32 port) [0x00000] in <filename unknown>:0
at Sfs2X.Core.Sockets.TCPSocketLayer.ConnectThread () [0x00000] in <filename unknown>:0 >)
UnityEngine.Debug:Log(Object)
ESMainState:OnConnect(BaseEvent) (at Assets/Scripts/ElectroServer/ESMainState.cs:349)
Sfs2X.Core.EventListenerDelegate:invoke_void__this___BaseEvent(BaseEvent)
Sfs2X.Core.EventDispatcher:DispatchEvent(BaseEvent)
Sfs2X.SmartFox:ProcessEvents()
ESMainState:FixedUpdate() (at Assets/Scripts/ElectroServer/ESMainState.cs:312)