Search code examples
vb.netweb-serviceswcfservice-reference

The underlying connection was closed: An unexpected error occurred on a send in SOAP webservice


I have a reference to a webservice which uses SOAP to process the searches and starting today morning i am receiving the following error:

The underlying connection was closed: An unexpected error occurred on a send.

This will not happen for few requests if the application is restarted and will start receiving these errors after a some time say like 5 minutes and if we restart as said the services are re-processed without any issues.

I have read: https://support.microsoft.com/en-us/kb/915599

but those methods will not work for my case. Anyone else have faced similar problem???


Solution

  • The Web Service host has changed their certificates and that was causing the web service to fail when trying to access the service. The host has provided me with the latest certificates and now the problem is resolved.

    Its weird that that initial connection and subsequent requests worked once i restart the application until the connection is closed and then when the application re-tries to connect, that's when the error message is popping up.