View Single Post
  #1 (permalink)  
Old December 18th, 2010, 03:22 PM
Arcy Arcy is offline
Registered User
 
Join Date: Nov 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Add Service Reference of a WCF service

Hi,
after creating the Calculator WCF Service (chapter 31) I am trying to add the Service reference in an ASP.NET application (WCFConsumer), writing the following address in the address field:
http://localhost:51179/WCFService1/Calculator.svc?wsdl, which I copied from the address bar of IE when viewing the svc file in the browser.
In doing so I receive an error with the following details:
There was an error downloading 'http://localhost:51179/WCFService1/Calculator.svc?wsdl'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:51179
Metadata contains a reference that cannot be resolved: 'http://localhost:51179/WCFService1/Calculator.svc?wsdl'.
There was no endpoint listening at http://localhost:51179/WCFService1/Calculator.svc?wsdl that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:51179
If the service is defined in the current solution, try building the solution and adding the service reference again.
I am stuck here and don't know how to solve the problem.

Thanks for any help