【发布时间】:2009-08-18 05:44:44
【问题描述】:
为什么在创建 WCF 端点时需要包含 DnsEndpointIdentity?
所以当我像这样创建一个端点时:
EndpointAddress endpoint = new EndpointAddress(uri);
我收到 SSPI 身份验证失败错误
但是当我这样做时它工作得很好:
DnsEndpointIdentity endpointIdentity = new DnsEndpointIdentity("sadmienjfkf");
EndpointAddress endPoint = new EndpointAddress(uri, endpointIdentity);
请注意,我什至不需要构造函数中的特定值,将其留空也可以正常工作。
另请注意,在我的服务端点定义中,我没有指定 servicePrincipalName,即我不包括
<identity>
<servicePrincipalName value="" />
</identity>
我一直在阅读有关 DnsEndpointIdentity 和 servicePrincipalName 的内容,但我不太明白。
任何人都可以发光吗?
【问题讨论】: