Unable to write data to the transport connection
by diptichawla - 6/17/11 1:59 AM
I have the following code in my WM6 application
TcpClient client = new TcpClient();
client.Connect(IpEndPoint);// IpEndPoint is a combination of a valid remote IP and port.
NetworkStream networkstream = client.GetStream();
streamwriter = new StreamWriter(networkstream,new System.Text.UTF8Encoding(false,true));
I always get the error :"Unable to write to the transport connection. An existing connection was forcibly closed by the remote host"
Where am I going wrong..plz help