创建WCF端点时出错

时间:2009-08-18 05:44:45

标签: c# .net asp.net wcf

为什么在创建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的内容,我真的不明白。
任何人都能发光吗?

1 个答案:

答案 0 :(得分:0)

你的设置是什么?

  • 您使用的是什么绑定?
  • 服务器配置 - 启用了哪些安全性?还有哪些其他选择?
  • 客户端配置 - 启用了哪些安全性?

也许this article here可以解释更多servicePrincipalName信息尝试做什么?

马克