title: WCF Error: Stream Security is required at http://www.w3.org/2005/08/addressing/anonymous, but no security context was negotiated
body: <p>We have a windows service that we are trying to use as WCF host for a WPF application.  It works fine in development but when we have tried to move to our production environment we have had nothing but problems.  From reading posts from others, we figured out how to turn on WCF logging and this was a big help.  It turned out that our security bindings on the service and the client did not match.  We set them both to use windows security but still no luck now we are trying to set the security mode to 'None' but it still is not working.  Here is the bindings section of our service config file:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="netTcp"&gt;
            &lt;security mode='None'&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding &gt;
      &lt;/bindings&gt;
      &lt;services&gt;
  
        &lt;service name="CompanyService"&gt;
          &lt;endpoint
            address= "our.url.com/CompanyService"
            binding="netTcpBinding"
            contract="CompanyServices.ICompanyService" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Here is the serviceModel section of our client app config:</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="NetTcpBinding_Config" &gt;
            &lt;security mode="None"&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
  
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="our.url.com/CompanyService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_Config" contract="CompanyServiceProxy.ICompanyService" name="NetTcpBinding_ICompanyService" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>If I need to supply additional infor please tell me what I need to supply.</p>
  
  <p>Thanks</p>