Resolviendo "The underlying connection was closed: An unexpected error occurred on a send." (Webservices)
Tomado de http://weblogs.asp.net/jan/archive/2004/01/28/63771.aspx Algunas veces cuando se invoca un webservice la llamada falla con el siguiente error: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ... In some cases the first call to the webservice works just fine, but if in the following few minutes no new call to the webservice is made, the next call would throw the exception shown above. This problem could be solved by altering the generated proxy class; in the GetWebRequest function the KeepAlive property must be set to false. This can be accomplished by following these steps: Add a Web Reference using the normal way (if you haven't already add...