title: WCF with reference to external web service
body: <p>I have made a WCF which draws data from a ms sql db and from an external WCF.
  When i debug the service it works fine, but once I try it in the real world, I get this error:</p>
  
  <p>An unhandled exception of type 'System.ServiceModel.FaultException`1' occurred in mscorlib.dll</p>
  
  <p>Additional information: There was no endpoint listening at <a href="http://10.11.11.22/AIM/AIMIS" rel="nofollow">http://10.11.11.22/AIM/AIMIS</a> that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</p>
  
  <p>Some of the app.config:</p>
  
  <pre><code>&lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="AdapterFacadeBinding" /&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
    &lt;endpoint address="http://10.11.11.22/AIM/AIMIS" binding="basicHttpBinding"
      bindingConfiguration="AdapterFacadeBinding" contract="AIMISWS.AdapterFacadePortType"
      name="AdapterFacadePort" /&gt;
  &lt;/client&gt;
  &lt;services&gt;
    &lt;service name="EcoGridIBMExport.CustomerService"&gt;
      &lt;endpoint address="" binding="basicHttpBinding" contract="EcoGridIBMExport.ICustomerService"&gt;
        &lt;identity&gt;
          &lt;dns value="localhost" /&gt;
        &lt;/identity&gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress="http://localhost:8733/Design_Time_Addresses/EcoGridIBMExport/Service1/" /&gt;
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  </code></pre>
  
  <p>and on the client app I connect like this:</p>
  
  <pre><code>static void Main(string[] args)
  {
      CustomerServiceClient client = new CustomerServiceClient();  
      Console.WriteLine(client.GetMeter());
      Console.ReadLine();
  
      client.Close();
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>