wcf服务器提交了协议冲突,WCF服务拒绝并出现错误服务器已拒绝客户端凭据

Following this guide i try to Host WCF service in a Windows Service Using TCP.

this works fine on my computer but when install this service in other computer in the same network got an error: The server has rejected the client credentials

I try to disable Firewall but still same error (and the service running...)

from the client side Add service reference works fine and recognize the service.

this is my app.config file:

contract="WcfServiceLibrary1.IService1">

contract="IMetadataExchange" />

192.168.0.100 is the server machine IP address.

Talk1:

When you run the WinForm application (client), what credentials are you running it under? You probably need to be running it under a domain account with admin priviledges.

Solutions1

Try to use this config for tcp binding:

Talk1:

That won't solve the problem. OP will get a binding mismatch because the security won't match. The service will be using the default security mode for netTcpBinding, which is "Transport".

Talk2:

Where i need to put this section ?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值