title: Cannot obtain Metadata from http://localhost:12659
body: <p>in my config my address details as follows <code>net.tcp://127.0.0.1:1127/CalculatorService but when the error message is showing Cannot obtain Metadata from http://localhost:12659</code></p>
  
  <p>i have simple service with tcp binding and i am running my service from VS2010 IDE with wcf test client and then i am getting this error  <strong>Cannot obtain Metadata from</strong> <code>http://localhost:12659</code></p>
  
  <p>here is my config file details</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!--Copyright (c) Microsoft Corporation.  All Rights Reserved.--&gt;
  &lt;configuration&gt;
      &lt;system.serviceModel&gt;
          &lt;services&gt;
              &lt;service name="MyTcpActivation.CalculatorService" behaviorConfiguration="CalculatorServiceBehavior"&gt;
  
                  &lt;host&gt;
                      &lt;baseAddresses&gt;
                          &lt;add baseAddress="net.tcp://127.0.0.1:1127/CalculatorService/"/&gt;
                      &lt;/baseAddresses&gt;
                  &lt;/host&gt;
  
                  &lt;endpoint address=""
                  binding="netTcpBinding" bindingConfiguration="PortSharingBinding"
                  contract="MyTcpActivation.ICalculator"/&gt;
  
                  &lt;endpoint address="mex"
                  binding="mexTcpBinding" 
                  contract="IMetadataExchange"/&gt;
              &lt;/service&gt;
          &lt;/services&gt;
  
          &lt;bindings&gt;
              &lt;netTcpBinding&gt;
                  &lt;binding name="PortSharingBinding" portSharingEnabled="true"&gt;
                      &lt;security mode="None"/&gt;
                  &lt;/binding&gt;
              &lt;/netTcpBinding&gt;
          &lt;/bindings&gt;
          &lt;!--For debugging purposes set the includeExceptionDetailInFaults attribute to true--&gt;
          &lt;behaviors&gt;
              &lt;serviceBehaviors&gt;
                  &lt;behavior name="CalculatorServiceBehavior"&gt;
                      &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/&gt;
                      &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
                  &lt;/behavior&gt;
              &lt;/serviceBehaviors&gt;
          &lt;/behaviors&gt;
      &lt;/system.serviceModel&gt;
      &lt;system.web&gt;
          &lt;compilation debug="true"/&gt;&lt;/system.web&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>please help me to run my service from wcf test client from VS2010 IDE. thanks</p>