Last post Jun 17, 2011 09:40 AM by roopeshreddy
Jun 17, 2011 05:14 AM|diptibhalla|LINK
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
Jun 17, 2011 08:35 AM|roopeshreddy|LINK
I think you r testing ur application in WM6 Emulator. Please check whether the WM6 Emulator is connected to network.
Check the following link for enabling network in WM6 Emulator.
If still the problem persists, post ur question in MSDN Forums. You will be answered soon.
Hope it helps u...
Jun 17, 2011 09:22 AM|diptibhalla|LINK
Hi, thanks for the reply but i am testing it in the emulator with enabled internet connection.
Jun 17, 2011 09:40 AM|roopeshreddy|LINK
Check the following link,