Unrelated change causing web service to close connection?  
Author Message
Richard Hough





PostPosted: ASMX Web Services and XML Serialization, Unrelated change causing web service to close connection? Top

I changed a form app which connects to a web service, and now whenever I try to connect to the service I get:

Exception: System.Net.WebException
Message: The underlying connection was closed: An unexpected error occurred on a send.
Source: System.Web.Services
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)

This happens every time I try to connect to the service. Running the earlier version of my app works fine. The puzzling thing is that the change was totally unrelated to the web connection; none of the web service classes have changed.

Any suggestions as to what is going on


.NET Development13