title: The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified
body: <p>I am getting the following error and I am not sure what I am doing wrong. Does anybody see anything obvious? Below are my project's Web.config and my WCF class library's App.config</p>
  
  <blockquote>
    <p>The Address property on
    ChannelFactory.Endpoint was null. The
    ChannelFactory's Endpoint must have a
    valid Address specified.</p>
  </blockquote>
  
  <p>APP.CONFIG ON SERVER (IN MY CLASS LIBRARY)</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="Default" name="Trezoro.WebAPI.Trade.TradeService"&gt;
          &lt;endpoint address="" behaviorConfiguration="WebEPBehavior" binding="webHttpBinding" 
            contract="ITradeService" name="WebHttpBinding_ITradeService" /&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8080/tradeservice/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
        &lt;service behaviorConfiguration="Default" name="Trezoro.WebAPI.Authentication.AuthService"&gt;
          &lt;endpoint address="" behaviorConfiguration="WebEPBehavior" binding="webHttpBinding" 
            contract="IAuthService" name="WebHttpBinding_IAuthService" /&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8081/authservice" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="WebEPBehavior"&gt;
            &lt;webHttp /&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="Default"&gt;
            &lt;serviceMetadata httpGetEnabled="True" /&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="True" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>WEB.CONFIG IN WEB PROJECT</p>
  
  <pre><code>&lt;system.serviceModel&gt;
    &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" /&gt;
  
      &lt;bindings&gt;
         &lt;customBinding&gt;
            &lt;binding name="WebHttpBinding_IAuthService"&gt;
               &lt;textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
                  messageVersion="Soap12" writeEncoding="utf-8"&gt;
                  &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                     maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
               &lt;/textMessageEncoding&gt;
            &lt;/binding&gt;
            &lt;binding name="WebHttpBinding_ITradeService"&gt;
               &lt;textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
                  messageVersion="Soap12" writeEncoding="utf-8"&gt;
                  &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                     maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
               &lt;/textMessageEncoding&gt;
            &lt;/binding&gt;
  
         &lt;/customBinding&gt;
      &lt;/bindings&gt;
          &lt;client&gt;
     &lt;endpoint binding="customBinding" bindingConfiguration="WebHttpBinding_IAuthService"
      contract="IAuthService" name="WebHttpBinding_IAuthService" /&gt;
     &lt;endpoint binding="customBinding" bindingConfiguration="WebHttpBinding_ITradeService"
      contract="ITradeService" name="WebHttpBinding_ITradeService" /&gt;
    &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  </code></pre>