【问题标题】:Error creating a WCF endpoint创建 WCF 终结点时出错
【发布时间】: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 的内容,但我不太明白。
任何人都可以发光吗?

【问题讨论】:

    标签: c# .net asp.net wcf


    【解决方案1】:

    你的设置是什么?

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

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

    马克

    【讨论】:

    • 安全模式="消息"; clientCredentialType="Windows"; NetTcp 绑定;在不同服务器上的控制台应用程序中托管
    • 你在做任何假冒行为吗?
    猜你喜欢
    • 2012-08-25
    • 1970-01-01
    • 2015-05-28
    • 2019-06-28
    • 1970-01-01
    • 2022-01-03
    • 2012-01-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多