S
Shane
I am getting the following exception when trying to post a
stream of string data to another website using an
HttpWebRequest object. It works sometimes but fails at
other times. Does anyone know what might be causing this?
Thanks,
Shane
System.IO.IOException: Unable to write data to the
transport connection. --->
System.Net.Sockets.SocketException: An existing connection
was forcibly closed by the remote host at
System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32
offset, Int32 size, SocketFlags socketFlags, AsyncCallback
callback, Object state) at
System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
state) --- End of inner exception stack trace --- at
System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
state) at System.Net.Connection.BeginWrite(Byte[]
buffer, Int32 offset, Int32 size, AsyncCallback callback,
Object state) at System.Net.ConnectStream.BeginWrite
(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback
callback, Object state) at
System.Net.ConnectStream.Write (Byte[] buffer, Int32
offset, Int32 size) at
WebLeads.recordactions.sendToXMLGateWay(String datastring)
stream of string data to another website using an
HttpWebRequest object. It works sometimes but fails at
other times. Does anyone know what might be causing this?
Thanks,
Shane
System.IO.IOException: Unable to write data to the
transport connection. --->
System.Net.Sockets.SocketException: An existing connection
was forcibly closed by the remote host at
System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32
offset, Int32 size, SocketFlags socketFlags, AsyncCallback
callback, Object state) at
System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
state) --- End of inner exception stack trace --- at
System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
state) at System.Net.Connection.BeginWrite(Byte[]
buffer, Int32 offset, Int32 size, AsyncCallback callback,
Object state) at System.Net.ConnectStream.BeginWrite
(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback
callback, Object state) at
System.Net.ConnectStream.Write (Byte[] buffer, Int32
offset, Int32 size) at
WebLeads.recordactions.sendToXMLGateWay(String datastring)