Connecting Tech Pros Worldwide Forums | Help | Site Map

An established connection was aborted by the software in your host machine

Member
 
Join Date: Nov 2007
Location: Alberta, Canada
Posts: 59
#1: Aug 18 '09
I have a program that sends some data on a networkstream through a tcp connection.
Expand|Select|Wrap|Line Numbers
  1. Dim networkstream As NetworkStream = Client.GetStream
  2.         networkstream.Write(message, 0, message.Length)
the error i get is an ioexception... "Unable to write data to the transport connection: An established connection was aborted by the software in your host machine."
But the problem is it doesnt happen every time i call the function with the code in it, it happens randomly. any help would be great

Reply