C# - binding does not have a configured binding named
<p>I've inherited a c# application that I don't know much about. When I build and publish it I get the following error: </p>

<blockquote>
  <p>The binding at system.serviceModel/bindings/basicHttpBinding does not
  have a  configured binding named
  'BasicHttpBinding_ILan_Structure_WCFService'.  This is an invalid
  value for bindingConfiguration.</p>
</blockquote>

<p>This is the code from my web config: </p>

<pre><code>  &lt;system.serviceModel&gt;
    &lt;bindings&gt;
      &lt;basicHttpBinding&gt;
        &lt;binding name="BasicHttpBinding_ILan_Structure_WCFService"&gt;
          &lt;security mode="Transport" /&gt;
        &lt;/binding&gt;
      &lt;/basicHttpBinding&gt;
    &lt;/bindings&gt;
    &lt;client&gt;
      &lt;endpoint
        address="https://website.com/Lan_Structure/Lan_Structure_WCFService.svc"
        binding="basicHttpBinding" 
        bindingConfiguration="BasicHttpBinding_ILan_Structure_WCFService" 
        contract="Lan_Structure_WCFService.ILan_Structure_WCFService" 
        name="BasicHttpBinding_ILan_Structure_WCFService"/&gt;
    &lt;/client&gt;
&lt;/system.serviceModel&gt;
</code></pre>

<p>I don't think I understand the error fully because I thought after a bit of Googling that it was referring specifically to this section: </p>

<pre><code>&lt;basicHttpBinding&gt;
        &lt;binding name="BasicHttpBinding_ILan_Structure_WCFService"&gt;
          &lt;security mode="Transport" /&gt;
        &lt;/binding&gt;
 &lt;/basicHttpBinding&gt;
</code></pre>

<p>So I thought there was a typo here which isn't the case! </p>

<pre><code>bindingConfiguration="BasicHttpBinding_ILan_Structure_WCFService"
</code></pre>

<p>I've tried reading these: </p>

<p><a href="https://msdn.microsoft.com/en-us/library/ms733099(v=vs.110).aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/ms733099(v=vs.110).aspx</a> </p>

<p><a href="https://stackoverflow.com/questions/22868531/the-binding-at-system-servicemodel-bindings-wshttpbinding-does-not-have-a-config">The binding at system.serviceModel/bindings/wsHttpBinding does not have a configured binding</a> </p>

<p>And I've tried removing the reference to the binding configuration as per this question: </p>

<p><a href="https://stackoverflow.com/questions/9853483/the-binding-at-system-servicemodel-bindings-wshttpbinding-does-not-have-error">The binding at system.serviceModel/bindings/wsHttpBinding does not have... error</a></p>

<p>But I'm a bit lost. Any help would be greatly appreciated!!! Also does anyone know where I can read a bindings for dummy's or something similar? I could do with reading up on this!</p>