Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:

I want to consume a WCF service in a remote host. I created an empty project and tried to Add Service reference by giving the URL?wsdl. But I m stuck with the following error

There was an error downloading "http://example/example.svc?wsdl".
The operation has timed out
Metadata contains a reference that cannot be resolved: "http://example/example.svc?wsdl".
An error occurred while receiving the HTTP response to http://example/example.svc?wsdl. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host

Please provide suggestions to overcome this error.

Updated 19-Apr-12 1:58am
[no name] 19-Apr-12 7:59am    
Note that the URLs are part of the narrative and are not meant to be clickable links.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900