Emre Aydinceren
8/7/2003 2:15:00 PM
As I am close to alpha release, unfortunately I can not
pay any time to the incident. But during tests , next
week, I will be able to reply your message with detailed
steps since it is very possible that issue is outstanding
for us.
Regards
Emre Aydinceren
>-----Original Message-----
>Hi Emre,
>
>I understand that you are getting the following exception
when you run your
>client to the web service:
>
> "An unhandled exception of
type 'System.Net.WebException' occurred in
>system.web.services.dll
>
> Additional information: The underlying connection was
closed: An
>unexpected error occurred on a send."
>
>What version of the framework are we dealing with here?
And can you give
>me the exact steps: Step1, Step2. Step3 etc to reproduce
the same behavior?
>
>Typically, you get this error when the connection is
closed, which can be
>caused at the client, firewall, or server. To get
arround this we suggest
>setting the httpkeepalive to false, for example:
>
>C#
>
> protected override WebRequest GetWebRequest(Uri uri)
> {
> HttpWebRequest webRequest = (HttpWebRequest)
base.GetWebRequest(uri);
>
> webRequest.KeepAlive = false;
>
> return webRequest;
> }
>
>VB.NET
>
>Protected Overrides Function GetWebRequest(ByVal uri As
Uri) As
>System.Net.WebRequest
> Dim webRequest As System.Net.HttpWebRequest
> webRequest = CType(MyBase.GetWebRequest(uri),
>System.Net.HttpWebRequest)
> webRequest.KeepAlive = False
> GetWebRequest = webRequest
> End Function
>
>This would be added in the Reference.cs or Reference.vb.
>
>Going back to your original post, I would like you to
provide step by step
>instructions so I am sure I clearly understand each step
and the behavior
>seen at each step.
>
>
>Thank you, Rich Thurman
>This posting is provided "AS IS", with no warranties, and
confers no rights.
>
>.
>