WCF - Disabling Security in nettcpbinding (C #)

I am trying to create a self-contained WCF application that uses nettcpbinding but works in an environment without a domain.

These are just two ordinary PC windows, one is the server and the other is the client. The problem is that when I try to get the client to connect it to failure due to security settings.

Could you point me in the right direction, how can I get this script to work?

Should I (if possible) disable security? Is there any other (hopefully easy) way to do this?

Hi,

Daniel

+5
source share
1 answer

, App.config WCF <security mode="None" />, :

<bindings>
  <netTcpBinding>
    <binding name="netTcpBindingConfig" transferMode="Buffered" maxReceivedMessageSize="5242880">
      <readerQuotas maxArrayLength="5242880" />
      <security mode="None" />
    </binding>
  </netTcpBinding>
</bindings>

, , . , .

+2

All Articles