title: Minimum configuration to make "Add Service Reference > Discover" work
body: <p>I have already a few WCF + Windows Service tested and working correctly as run as a Windows Service on remote dev machines. Except for one.</p>
  
  <p>In order to debug, I tried to host the WCF (without the Windows Service) using the built-in "Add Service Reference" and then hosting it in visual studio (don't know what the host is called).</p>
  
  <p>Anyways, I cannot get the Add Service Reference to Discover my services.</p>
  
  <p>Since I am using Windoes Services, I am using TCP stuff. This are some things I have done, <strong>all in the winforms app that I am adding the service reference</strong>:</p>
  
  <p>Add Project > Properties > Debug > Command line arguments: /client:"WcfTestClient.exe" but the exe doesn't run.</p>
  
  <p>And my App.Config</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;client&gt;
        &lt;endpoint address="net.tcp://localhost:32279/SYNC" binding="netTcpBinding"
          bindingConfiguration="tcpSyncBindingConfig" contract="Company.Data.Sync.ILocalCacheSyncContract"
          name="tcpSyncClientEP" /&gt;
      &lt;/client&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="tcpSyncBindingConfig" maxReceivedMessageSize="6553600" /&gt;
        &lt;/netTcpBinding&gt;
        &lt;mexTcpBinding&gt;
          &lt;binding name="tcpMexBindingConfig" /&gt;
        &lt;/mexTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="svcBehavior" name="Company.Data.Sync.Services.LocalCacheSyncService"&gt;
          &lt;endpoint address="net.tcp://localhost:32279/Sync" binding="netTcpBinding"
            bindingConfiguration="tcpSyncBindingConfig" name="tcpSyncListenEP"
            contract="Company.Data.Sync.Services.ILocalCacheSyncContract" /&gt;
          &lt;endpoint address="net.tcp://localhost:32279/Sync/mex" binding="mexTcpBinding"
            bindingConfiguration="tcpMexBindingConfig" name="tcpMexEP" contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="svcBehavior"&gt;
            &lt;serviceMetadata httpGetEnabled="false" /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strike><strong>Side note</strong>: the ServiceOperation are returning Microsoft.Synchronization.Data.xxx sutff for example SyncContext. I might have to add a reference in the Winforms? Or will the "Add Service Reference" add them for me? The service and contracts are generated by the Local Database Cache template.</strike> perhaps not related to the problem.</p>