Error.

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top