You do not have a base address for nettcp โ or you need to determine the full netTCP address at the endpoint. The current netTcp endpoint is as follows:
<endpoint address="" binding="netTcpBinding"
You do not specify the full address โ WCF is looking for the base address to use net.tcp - but it isnโt!
Solution 1 : add baseAddress for netTcp:
<services> <service name="JMSysSplash.CommunicationServer.JMSysSplashServer" behaviorConfiguration="Service1Behavior"> ..... <host> <baseAddresses> <add baseAddress="http://localhost:8731/JMSysSplashServer.svc/"/> <add baseAddress="net.tcp://localhost:8888/JMSysSplashServer"/> </baseAddresses> </host> </service> </services>
Now your net.tcp endpoint can be reached at net.tcp://localhost:8888/JMSysSplashServer
Solution 2 : provide the full address at the net.Tcp endpoint:
<services> <service name="JMSysSplash.CommunicationServer.JMSysSplashServer" behaviorConfiguration="Service1Behavior"> <endpoint address="" binding="wsHttpBinding" contract="JMSysSplash.CommunicationClient.IJMSysSplashServer"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> <endpoint address="net.tcp://localhost:8888/JMSysSplashServer" binding="netTcpBinding" bindingConfiguration="tcpBinding" contract="JMSysSplash.CommunicationClient.IJMSysSplashServer"/> ....... </service> </services>
When you define an endpoint, you
- or specify the full address (with
net.tcp and port number and all)
OR
- you specify a relative address (for example,
address="" ), but in this case you must have a base address for this scheme (here: net.tcp ) - not just the base address http
marc_s
source share