I am hosting a WCF service on Windows Service (let's call it WCF B) and then trying to consume it from another WCF service (which is self hosted) (let's call it WCF A).

I am able to add service reference perfectly, end points are getting auto generated properly. But when I am trying to instantiate the client object.
I am communicating over TCP. I am getting following error.

Configuration Code of WCF B is as below

Auto generated Endpoint details(After adding Service Reference) in WCF A web.config are as below.

We have to copy the endpoint details from our WCF A web.config and paste them into it's host (Console app.config in this case)
Information to be copy pasted is configuration which is auto generated after adding Service Reference.