I have suddenly started getting this error in our project. I am currently the only one who gets it, but I am unsure when it started happening, which is making it very difficult to track down whatever has been changed.
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. --->
System.IO.IOException: Unable to write data to the transport connection: The system detected an invalid pointer address in attempting to use a pointer argument in a call. --->
System.Net.Sockets.SocketException: The system detected an invalid pointer address in attempting to use a pointer argument in a call
at System.Net.Sockets.Socket.MultipleSend(BufferOffsetSize buffers, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.MA first chance exception of type 'System.Net.WebException' occurred in System.Web.Services.dll
I am connecting to a Web Service, using c#. The Web Service is written in Java. I am succussfully loading data from it, but when I try to send data back, I get this error. I have tried all the suggestions I have found in this site, so I am now also doing:
protected override System.Net.WebRequest GetWebRequest(Uri uri)
System.Net.HttpWebRequest rval = base.GetWebRequest(uri) as System.Net.HttpWebRequest;
if (rval != null)
rval.KeepAlive = false;
rval.ProtocolVersion = HttpVersion.Version10;
but with no success.
Can anyone help (I have also disabled the firewall on my machine, to see if that helped - it didn't).