Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>At a guess I'd check three things:</p> <ol> <li><p>When you add the service reference to your client, are you adding it from <code>net.tcp://localhost:8010/WCFService.Service1/</code>, or are you adding it from <code>net.tcp://server17:8010/WCFService.Service1/</code>? </p></li> <li><p>If you're adding it from server17, try using the fully qualified name of the server - i.e., server17.mydomain.com or whatever it is.</p></li> <li><p>The connection error is probably related to the endpoint address you're using - the client is passing in a serverPrincipalName of "host/server17.domain.com", but you're attempting to connect to localhost.</p></li> </ol> <p>No guarantees any of the above are the root cause, but it gives you a place to start. </p> <p><strong>EDIT</strong></p> <p>You specify the locahost in the baseAddress element, but you don't specify anything in the address attribute of the endpiont element. That's probably why it's still going to localhost.</p> <p>Modify the config file for your service to either change the baseAddress to:</p> <pre><code>&lt;baseAddresses&gt; &lt;add baseAddress="net.tcp://server17:8010/WCFService.Service1/" /&gt; &lt;/baseAddresses&gt; </code></pre> <p>or drop the baseAddresses and specify the address in your endpoint:</p> <pre><code>&lt;endpoint address="net.tcp://server17:8010/WCFService.Service1/" binding="netTcpBinding" bindingConfiguration="" name="netTcpEndPoint" contract="WCFService.IService1" /&gt; </code></pre> <p>Give that a try.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload