A Web service written using System.Net.WebClient() and the UploadData function was running on a server.
When the server URL was changed it returns an error The underlying connection was closed: The connection was closed unexpectedly.
The strange thing is that using a SOAP client the service runs fine and it works for the previous server.