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;

 
posted @ 2012-04-07 17:19  深圳大漠  阅读(1011)  评论(1编辑  收藏  举报