Unhandled securityError

nailgg used Ask the Experts™
I wrote a listener application on VB6 that listens the port 6232 and tries to communicate with a program written on/with actionscript. I downloaded a telnet sample for Flash CS4 written by Adobe, and uploaded it to my local server. The VB6 application also runs on the local server. However, although I have the crossdomain.xml on the root of my server, "unhandled securityerror" error occurs.

My main purpose is to make that flash telnet application be able to run on any browser and connect to the listener application using the port 6232. How can I fix the problem? I tried many different crossdomain.xml examples but none helped.

Thanks in advance.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Are you listening for this event???  

Also, you are making sure that you use the same domain name all the time, right???



Yes, I use the same domain name. And I'm also listening for that event too. Here is a part of my connection code.
socket = new Socket();	
socket.addEventListener(Event.CONNECT, connectHandler);
socket.addEventListener(Event.CLOSE, closeHandler);
socket.addEventListener(ErrorEvent.ERROR, errorHandler);
socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
socket.addEventListener(ProgressEvent.SOCKET_DATA, dataHandler);
socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleError);

socket.connect(serverURL, portNumber);

private function handleError(event:SecurityErrorEvent):void {
	trace("securityErrorHandler: " + event);

Open in new window

Hm...  I'm clueless...

So, I take port 6232 is not actual server but an application where you cannot really put crossdomain.xml file in, right???  I mean, if it is an apache you can put crossdomain.xml file into the document root directory, but it is not the case, is it???

Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!


Hmm. I have a server apache is installed on it, my flash client is also loaded on this server, and my VB Listener application is running on the same server too. I ran a second listener application for port 843 on server. When I open the flash client loaded on server from a different pc with a browser, the flash client sends "<policy-file-request/>" both 6232 and 843 ports on my server. My two listener applications on server send the content of crossdomain.xml file, but it doesn't work, flash client disconnects 2-3 secs after connection.

Sounds like it should work, but it does not...  Honestly I have no idea...  :(

OK, I've solved it.
The server must send Chr(0) after the content of the crossdomain.xml.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial