title: WCF Socket Error 10045
body: <p>My colleague has an app that hosts a simple WCF service with a net.tcp endpoint.  I can add the service reference to any app I create using the address net.tcp://192.168.0.22:9999/GSS-POS/QueryDispatcher/mex</p>
  
  <p>However, when he tries to add the service reference to an app running on his machine he immediately gets a socket error 10045.  We've tried using both net.tcp://localhost:9999/GSS-POS/QueryDispatcher/mex</p>
  
  <p>and</p>
  
  <p>net.tcp://192.168.0.22:9999/GSS-POS/QueryDispatcher/mex</p>
  
  <p>He's tried re-installing Visual Studio 2008, Service Pack 1 and XP Service Pack 3 all to no avail.  Can anybody provide any pointers?</p>
  
  <p>UPDATE: This appears as though it is related to Visual Studio.  By using the WCF Client test app, it is possible to see the service.  It seems as though VS is having the problem adding the service reference.</p>
  
  <p>UPDATE 2: Adding a reference with VS 2008 works with named pipe and http transport.  The problem only manifests itself when trying to add a service reference which utilises a net.tcp endpoint.</p>
  
  <p>Best regards,</p>
  
  <p>Simon</p>