title: Why "no elements matching the key were found in the configuration element collection"?
body: <p>I am programmatically creating a named pipe WCF service and client.</p>
  
  <p>The service code does:</p>
  
  <pre><code>serviceHost = new ServiceHost(typeof(CFCAccessPointService), new Uri(Names.Address));
  serviceHost.AddServiceEndpoint(typeof (ICfcAccessPoint), new NetNamedPipeBinding(Names.Binding), Names.Contract);
  serviceHost.Open();
  </code></pre>
  
  <p>The client code:</p>
  
  <pre><code>var ctx = new InstanceContext(new StatusHandler());
  s_proxy = new DuplexChannelFactory&lt;ICfcAccessPoint&gt;(ctx, new NetNamedPipeBinding(Names.Binding), new EndpointAddress(Names.Address));
  </code></pre>
  
  <p>with </p>
  
  <pre><code>public static class Names
  {
      public const string Address = "net.pipe://localhost/CFC/Plugins/GuestAccessService";
      public const string Binding = "netNamedPipeBinding_ICfcAccessPoint";
      public const string Contract = "GuestAccessClientServerInterface.ICfcAccessPoint";
  }
  </code></pre>
  
  <p>to ensure the client and service stay the same.</p>
  
  <p>But if I drop the Names.Binding so that no binding configuration is specified, I get the error that no listener could be found at the endpoint.  If I include it, I get "no elements matching the key were found in the configuration element collection"...</p>
  
  <p>I am not using .config files.</p>
  
  <p>What is still missing?</p>