title: Could not find endpoint element with name WCF
body: <p>I send name to endpoint but I get error.</p>
  
  <p><strong>Error:</strong></p>
  
  <p>Could not find endpoint element with name 'HTTP_Port' and contract 'WSPI.InvoiceCheck_Out' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.</p>
  
  <p><img src="https://i.stack.imgur.com/RYxGF.png" alt="enter image description here"></p>
  
  <p><strong>WebConfig:</strong></p>
  
  <pre><code>&lt;client&gt;
              &lt;endpoint address="https://example.company.eu:51201"
                  binding="basicHttpBinding" bindingConfiguration="InvoiceCheck_OutBinding"
                  contract="WSPI.InvoiceCheck_Out" name="HTTP_Port" /&gt;
              &lt;endpoint address="https://example.company.eu:51201"
                  binding="basicHttpBinding" bindingConfiguration="InvoiceCheck_OutBinding1"
                  contract="WSPI.InvoiceCheck_Out" name="HTTPS_Port" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p>I put this here work correct <strong>App.config</strong>:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v2.0.50727"/&gt;
    &lt;/startup&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="Microsoft.SharePoint" publicKeyToken="71E9BCE111E9429C" culture="neutral"/&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0"/&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
  
    &lt;/runtime&gt;
      &lt;system.serviceModel&gt;
        &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
            &lt;binding name="InvoiceCheck_OutBinding" /&gt;
            &lt;binding name="InvoiceCheck_OutBinding1"&gt;
              &lt;security mode="Transport" /&gt;
            &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
        &lt;/bindings&gt;
        &lt;client&gt;
          &lt;endpoint address="http://test"
              binding="basicHttpBinding" bindingConfiguration="InvoiceCheck_OutBinding"
              contract="WSPI.InvoiceCheck_Out" name="HTTP_Port" /&gt;
          &lt;endpoint address="https://test"
              binding="basicHttpBinding" bindingConfiguration="InvoiceCheck_OutBinding1"
              contract="WSPI.InvoiceCheck_Out" name="HTTPS_Port" /&gt;
        &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>