p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=554)
-   -   Add Service Reference of a WCF service (http://p2p.wrox.com/showthread.php?t=81959)

Arcy December 18th, 2010 03:22 PM

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. [:confused:]

Thanks for any help


All times are GMT -4. The time now is 01:35 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.