Monday, January 28, 2019

Help to Disable WCF Authentication for TCP Binding

I have an old windows service I am just keeping on life support for now. It struggles at times when there is a high volume of WCF traffic and there is a need to get more speed in the short-term. Disabling WCF Authentication seems to be very promising (it's a LOT of chatter, so a ton of NTML Auth) but I have not had any luck identifying the right combination of settings on the client and server side to get it to work properly. Would someone offer suggestions or examples of working WCF config settings I could try?

Thanks in advance!

On the Server side:

<bindings>

<netTcpBinding>

<binding name="TCPBinding" closeTimeout="00:10:00" openTimeout="00:10:00" sendTimeout="00:10:00" listenBacklog="1000" maxBufferSize="10000000" maxConnections="1000" maxReceivedMessageSize="10000000">

<readerQuotas maxDepth="10000" maxStringContentLength="10000" maxArrayLength="10000" maxBytesPerRead="10000" maxNameTableCharCount="10000" />

<security>

<transport>

<extendedProtectionPolicy policyEnforcement="Never" />

</transport>

</security>

</binding>

</netTcpBinding>

</bindings>

On the Worker/Client side:

<system.serviceModel>

<bindings>

<netTcpBinding>

<binding name="TCPBinding" maxBufferSize="10000" maxReceivedMessageSize="10000"><readerQuotas maxDepth="10000" maxStringContentLength="10000" maxArrayLength="10000" maxBytesPerRead="10000" maxNameTableCharCount="10000" />

</binding>

</netTcpBinding>

</bindings>

<client>

<endpoint address="net.tcp://Server01:7977/App/Function" binding="netTcpBinding" bindingConfiguration="TCPBinding" contract="AT2.Batch.Interface.Controller.IService" name="Controller Service">

<identity>

<servicePrincipalName value="host/localhost" />

<certificateReference storeName="My" storeLocation="LocalMachine" x509FindType="FindBySubjectDistinguishedName" />

</identity>

</endpoint>

</client>

</system.serviceModel>

Help to Disable WCF Authentication for TCP Binding Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team