You need to sign in to do that
Don't have an account?
itstaff1.3920641347534116E12
System.Net.WebException: The underlying connection was closed
We have a web service set up that allows one of our clients to automatically send us leads. It seems that they have been getting the following errors:
.System.Net.WebException: The underlyingconnection was closed: The connectionwas closed unexpectedly.
(This is all they provided me)
From what I have read in forums and discussions, the following code snippet needs to be added to the reference file in the solution that invokes the web service:
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}
Can anyone provide some insight if I am headed in the right direction, or is there something else that needs to be done?
Thanks.
.System.Net.WebException: The underlyingconnection was closed: The connectionwas closed unexpectedly.
(This is all they provided me)
From what I have read in forums and discussions, the following code snippet needs to be added to the reference file in the solution that invokes the web service:
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}
Can anyone provide some insight if I am headed in the right direction, or is there something else that needs to be done?
Thanks.
Shashank (Salesforce Developers)
You may find this helpful: http://support.microsoft.com/kb/823177