Archive for the ‘SAP’ Category
The underlying connection was closed
If you ever get the above error message from a (SAP) webservice…this might fix it (at this in the generated proxy).
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri);
webRequest.KeepAlive = false;
webRequest.PreAuthenticate = true;
webRequest.ProtocolVersion = System.Net.HttpVersion.Version10;
return webRequest;
}