title: Making a custom binding configurable over App.config
body: <p>I've created a custom binding and want to make it configurable over App.config.</p>
  
  <p>The binding has no special options at the moment, so it would be sufficient to support just</p>
  
  <pre><code>&lt;endpoint address="http://myAddress" 
            binding="myBinding"
            contract="myContract"&gt;
  </code></pre>
  
  <p>After checking some sites, I found out that I have to enable configuration support through a <code>&lt;BindingExtension&gt;</code>. However, the MSDN site didn't help much, since  when I try to add</p>
  
  <pre><code>&lt;extensions&gt;
    &lt;bindingExtensions&gt;
      &lt;add name="myBinding" 
           type="MyNamespace.MyHttpBinding, NameOfMyDll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/&gt;
    &lt;/bindingExtensions&gt;
  &lt;/extensions&gt;
  </code></pre>
  
  <p>, I only receive the following error message when trying to launch the program: </p>
  
  <blockquote>
    <p>Configuration binding extension 'system.serviceModel/bindings/myBinding' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.</p>
  </blockquote>
  
  <p>The type mentioned in the bindingExtension points to the type which inherits from <code>Binding</code>.</p>
  
  <p>What do I have to add to enable configuration support for my binding?</p>
  
  <hr>
  
  <p>My goal is just to be able to export my binding to the config file. I don't want to allow any special settings for the binding. It should just be usable over the config file's <code>&lt;endpoint&gt;</code> tag.</p>