Error Failed To Load Policy File From Xmlsocket
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XMLSocket “Failed to load policy file” error up vote 0 down vote favorite I am trying to use an XMLSocket.swf file, and it is not connecting. Do I need to open up a port on my server? I am trying to run this on a dedicated remote Windows 2008 server. Here is the error from FlashFirebug: OK: Root-level SWF loaded: file:///C|/Users/vcaadmin/AppData/Roaming/Mozilla/Firefox/Profiles/70vbx4ys.default/extensions/flashfirebug%40o%2Dminds.com/chrome/content/flashfirebug.swf OK: Root-level SWF loaded: http://speak-tome.com/flash/XMLSocket.swf OK: Searching for
SFS2X Questions Search It is currently 11 Oct 2016, 11:42 All times are UTC Error: Request for resource at xmlsocket Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums. Moderators: Bax, Lapo, rjgtav Post Reply Print view Search Advanced search 5 posts • Page 1 of 1 Sparticus Posts: 217 Joined: 27 Feb 2006, 17:44 Location: Canada Contact: Contact Sparticus Website Error: Request for resource at xmlsocket Quote Postby Sparticus » 16 Jul 2013, 17:51 Hey all,Looking at the flash log I see hundreds of these :*** Security Sandbox Violation ***Connection to 127.0.0.1:5840 halted - not http://stackoverflow.com/questions/10431487/xmlsocket-failed-to-load-policy-file-error permitted from http://www.mywebsite.com/game.swfError: Failed to load policy file from xmlsocket://127.0.0.1:5840Error: Request for resource at xmlsocket://127.0.0.1:5840 by requestor from http://www.mywebsite.com/game.swf has failed because the server cannot be reached.My game plays just fine and every appears to be working... but the fact I see all these error messages worries me. Thanks Top ndesy Posts: 33 Joined: 18 Feb 2008, 21:41 Location: Montreal Re: Error: Request for resource at xmlsocket Quote http://www.smartfoxserver.com/forums/viewtopic.php?t=16271 Postby ndesy » 16 Jul 2013, 19:25 That's because your flash client is trying to connect to monsterdebugger and it is not currently running on your computer. Top Sparticus Posts: 217 Joined: 27 Feb 2006, 17:44 Location: Canada Contact: Contact Sparticus Website Re: Error: Request for resource at xmlsocket Quote Postby Sparticus » 16 Jul 2013, 20:12 Oh geez. You are absolutley right. I just started using the monster debugger the other day.I assume that means I need to remove all things related to monster debugger whe pushing my game to the live site? That sounds like a pain Top ndesy Posts: 33 Joined: 18 Feb 2008, 21:41 Location: Montreal Re: Error: Request for resource at xmlsocket Quote Postby ndesy » 16 Jul 2013, 20:19 You should hide all the references to monsterdebugger behind a facade (homemade function), then you can use optional compilation to enable monsterdebugger only if you run the game locally. http://livedocs.adobe.com/flex/3/html/h ... rs_21.html Top Sparticus Posts: 217 Joined: 27 Feb 2006, 17:44 Location: Canada Contact: Contact Sparticus Website Re: Error: Request for resource at xmlsocket Quote Postby Sparticus » 16 Jul 2013, 20:22 ya, I just found out I can just set:MonsterDebugger.enabled = falsebefore Monster debugger initializes then everything works.tha
Sign in Pricing Blog Support Search GitHub This repository Watch 137 Star 2,360 Fork 401 gimite/web-socket-js Code Issues 26 Pull requests 4 Projects 0 Wiki Pulse Graphs https://github.com/gimite/web-socket-js/issues/49 New issue The current implementation favors port 843 for socket policy files #49 Closed jvshahid opened this Issue Jan 8, 2011 · 18 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 5 participants jvshahid commented Jan 8, 2011 According to this article http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html#_Configuring_Socket_Policy: ...that you need to provide more explicit guidance to Flash Player error failed from ActionScript by calling loadPolicyFile to indicate the location of a socket policy file. When you call loadPolicyFile rather than allowing Flash Player to check locations by default, Flash Player will wait as long as necessary for a response from a socket policy file server, rather than timing out after 3 seconds. This may help your application's reliability in marginal network conditions. It error failed to can thus be helpful to call loadPolicyFile even for a default socket policy file location—simply to request that Flash Player wait patiently for the socket policy file server to respond. It looks like asking flash to load the policy file from port 843 (WebSocketMain.as:53) will make it favor that port over the destination port. This will cause a problem if port 843 is blocked by a firewall. I noticed that flash will try port 843 three time and it waits the first time for 3 sec then it waits for 6 sec for the second and third retries (On Windows it's 3, 6 and 12 seconds resp.) That's about 15-21 seconds between the time the user loads the page and a connection being established. I'm proposing to remove that line (WebSocketMain.as:53) since flash will try port 843 anyway. Without that line, it'll try port 843 only once with a timeout of 3 seconds. This is more acceptable than the 15 seconds delay in my opinion. Thanks, Owner gimite commented Jan 9, 2011 Yeah it makes some sense. But I also have some reason to prefer the curre