title: Port Sharing Enabled Issue with a WCF Net Tcp Service (windows host)
body: <p>I use the following piece of code to host and start a wcf service using net tcp binding:</p>
  
  <pre><code>public void StartServices()
  </code></pre>
  
  <p>{</p>
  
  <pre><code>   NetTcpBinding portsharingBinding = new NetTcpBinding();
     portsharingBinding.PortSharingEnabled = true;
  
     serviceHost = new ServiceHost(intranetDesktopService,new Uri(baseAddress));
  
     serviceHost.AddServiceEndpoint(typeof(IIntranetDesktopServiceListener),   
          portsharingBinding, endpointAddress);
  
     serviceHost.Open();
  </code></pre>
  
  <p>}</p>
  
  <p>However, when I open the service i get the following error:
  {"The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: the service failed to listen."}
   its a AddressAlreadyInUseException</p>
  
  <p>However the address is not already in use... if I change PortSharingEnabled = true to false.. the service runs fine (but I can only have one instance).</p>
  
  <p>I have enabled the Net.TCP Port sharing service and also addedd the SID of the everyone group to the SMSVChost.config file...</p>
  
  <p>Any ideas?</p>