WCF:The server has rejected the client credentials.

错误内容:The server has rejected the client credentials.

问题:WCF客户端存在域时,客户端通过TCP调用服务器端会报告此问题。

解决:设置前台和后台的NetTcpBinding:

NetTcpBinding binding = new NetTcpBinding();

binding.Security.Mode = SecurityMode.None;

binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.None;

 
原文地址:https://www.cnblogs.com/ego/p/2436283.html