This project has moved. For the latest updates, please go here.

Socket error

Sep 6, 2012 at 2:26 PM

I got this error only Windows Xp


Error sending message to socket: [SocketException] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied

Sep 11, 2012 at 5:49 PM

Are you sending data before the socket is connected?


Sep 12, 2012 at 6:15 AM

my steps like ..

get message from db

1. Connect to

2.Send Message


4. get new message from db

5.Connect to again

6.Send Message Error occured

Sep 12, 2012 at 1:03 PM

Ensure that you are using a new instance of the socket class. The socket classes don't allow re-use, so once they're disconnected/closed, they should be discarded.