How to force a net.tcp mex endpoint (mexTcpBinding) to participate in port sharing?
问题 I have a WCF service which is hosted as a Windows Service. We would like to enable a mex endpoint at the same address (but with a '/mex' suffix). I have been trying to do this (unsuccessfully) using the following configuration: <system.serviceModel> <services> <service name="MyCompany.MyService" behaviorConfiguration="defaultServiceBehavior"> <host> <baseAddresses> <add baseAddress="net.tcp://localhost"/> </baseAddresses> </host> <endpoint address="MyService" binding="netTcpBinding" contract=