为什么在创建WCF端点时需要包含DnsEndpointIdentity?
所以当我像这样创建一个endPoint时:
EndpointAddress endpoint = new EndpointAddress(uri);
我收到SSPI身份验证失败错误
但是当我这样做时,效果很好:
DnsEndpointIdentity endpointIdentity = new DnsEndpointIdentity("sadmienjfkf");
EndpointAddress endPoint = new EndpointAddress(uri, endpointIdentity);
请注意,我甚至不需要构造函数中的特定值,并且将其留空也可以正常工作 另请注意,在我的服务端点定义中,我没有指定servicePrincipalName,即我不包括
<identity>
<servicePrincipalName value="" />
</identity>
我一直在阅读关于DnsEndpointIdentity和servicePrincipalName的内容,我真的不明白。
任何人都能发光吗?
答案 0 :(得分:0)
你的设置是什么?
也许this article here可以解释更多servicePrincipalName信息尝试做什么?
马克