title: WCF NetTCPBinding in a Load Balanced Environment; what is the correct configuration?
body: <p>I have been battling to resolve wcf issues on our production servers. One of the errors thrown is "The server rejected the upgrade request." among other weird errors I'm receiving. Our applications runs on the Citrix environment for the front end and our application servers host our WCF Services. We have two application servers set up for load balancing and this KEMP server supports sticky ip's since we are using nettcpbinding. However, I am not sure if we have configured our NetTCP settings correctly as the application frequently uses 100% CPU, when more than 5 users log onto an application. After an iisreset, it takes about an hour for this to re-occur. Please find below the configuration of the NETTcpBinding below:</p>
  
  <pre><code>&lt;bindings&gt;
    &lt;netTcpBinding&gt;
      &lt;binding name="NetTcpLargeBindingEndpoint"
               closeTimeout="00:05:00"
               openTimeout="00:05:00"
               receiveTimeout="00:15:00"
               sendTimeout="00:15:00"
               transactionFlow="false"
               transferMode="Buffered"
               transactionProtocol="OleTransactions"
               hostNameComparisonMode="StrongWildcard"
               maxBufferPoolSize="2147483647"
               maxBufferSize="2147483647"
               maxReceivedMessageSize="2147483647"
               listenBacklog="10"
               portSharingEnabled="false"
              &gt;
        &lt;reliableSession enabled="false"/&gt;
        &lt;readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" /&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="Windows" /&gt;
          &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/netTcpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>I have tried searching articles for the correct settings to have for nettcpbindng, but not luck and the most helpful is this msdn article:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/vstudio/hh273122(v=vs.100).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/vstudio/hh273122(v=vs.100).aspx</a>
  Is there something I'm doing wrong in these settings? Please assist</p>