I have two base addresses defined in my WCF Service config file:
Due to not having answers clear enough , I decided to find out by my self the best solution. Here is what you have to do to configure a WCF NET TCP service endpoint in IIS 7.0.
To achieve this, we need two steps:
1. Configure a config file for WCF net tcp endpoint
Below is a typical config file, notice that the value for "address", in service's endpoint, is empty.
Also notice that inside the node "host" Im adding 2 base addresses, an http and a net tcp protocols respectly. Since the service is hosted in IIS you don't have to worry about the absolute address in the endpoint, IIS figures this out based on the base address we have defined inside the node "host".
2. Configure IIS for net tcp
In IIS, (after updated your service with new configuration) enable the net.tcp protocol. These are the steps:
After doing this, there is also another configuration:
Also, if you still cannot access service, you might need to start your Net.tcp listener adapter in your server. To achieve this, please follow next steps:
That's all you have to do to have a nettcp WCF endpoint enabled in IIS.
Hope this helps.
Regards