Hotguy

Hotguy

  • NA
  • 2
  • 0

Web Service Error : "The underlying connection was closed: The connection was closed unexpectedly."

Jul 29 2010 5:10 AM
I am trying to call a web service made in Java from Windows Form 2.0. Sometimes it works fine and sometimes it gives an error "The underlying connection was closed: The connection was closed unexpectedly.".
      When I tried searching the solution on the internet most of them suggested to override the function GetWebRequest(), and in that assign the KeepAlive property to "False" and use ProtocolVersion as 1.0.
      I tried the above solution but that did'nt work out for me. Kindly suggest a workable solution for my problem.