title: WCF Trace error: Configuration evaluation context not found
body: <p>I've set up a self-hosted service scenario where I'm programmatically setting up several service hosts. For each one of these hosts that I open, I see the following error in the trace log:</p>
  
  <pre><code>&lt;TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning"&gt;
      &lt;TraceIdentifier&gt;http://msdn.microsoft.com/en-US/library/System.ServiceModel.EvaluationContextNotFound.aspx&lt;/TraceIdentifier&gt;
      &lt;Description&gt;Configuration evaluation context not found.&lt;/Description&gt;
      &lt;AppDomain&gt;myprogram.exe&lt;/AppDomain&gt;
  &lt;/TraceRecord&gt;
  </code></pre>
  
  <p>I've read that this is caused by using extensions that are not declared in the configuration file, and I am indeed using a custom behavior extension, but adding it to the .exe's configuration file did not have any effect:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;extensions&gt;
          &lt;behaviorExtensions&gt;
              &lt;add name="myext" type="mytype, myassembly" /&gt;
          &lt;/behaviorExtensions&gt;
      &lt;/extensions&gt;
      ....
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Note that I'm not using this extension anywhere else in the configuration file, I'm adding it to the service host programmatically. I even set up a dummy behavior that used the extension just to see if it would resolve the issue, but it did not.</p>
  
  <p>Why am I seeing this error in my log?</p>