Sign in to follow this  

[.net] TcpClient Exception

Recommended Posts

I have a simple application with a network stream using the TcpClient class. My operations are setup and run using the Async methods (Being... / End...) Everything works fine until I want to close the connection, or re-connect. When I try to call the BeginConnect the second time (after closing the existing stream) I get a SocketException. Its driving me crazy!!! I dont know why it is thrown Here is the exact error: SocketException was unhandled ------------------------------- The attempted operation is not supported for the type of object referenced. ErrorCode: 10045 Please help me with this! :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this