Assuming the client application is in the same solution as the WCF service project, r-click the client application and select Add Service Link.
A dialog will be displayed allowing you to select your service by clicking the button in the upper right corner, labeled "Discover."
Assuming that the binding is correctly installed and available for the WCF service (via the app.config file or similar), the IDE will automatically host this service for you. - note that app.config must be located within the WCF service project, unless the specified host is already available in another project as part of the solution.
If there are problems with the hosting of the service, a new dialog will appear, with the right column for your service endpoints that indicate "Error". By clicking on the line with the error, you will find out why there is a problem, and I hope it helps you solve it.
source share