带有 TransportWithMessageCredential 和 clientCredentialType=“Windows"的 BasicHttpBinding [英] BasicHttpBinding with TransportWithMessageCredential and clientCredentialType="Windows"

查看:22
本文介绍了带有 TransportWithMessageCredential 和 clientCredentialType=“Windows"的 BasicHttpBinding的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在客户端和服务器上使用此绑定配置:

I am using this binding configuration on client and server:

<basicHttpBinding>
    <binding name="BasicHttpBinding_IService1">
        <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="Windows" />
        </security>
    </binding>
</basicHttpBinding>

客户端凭据似乎没有像我假设的那样自动传递(或者它们是?),所以我需要知道如何自己设置它们.这会奏效吗?

The client credentials seem to not be passed automagically (or are they?) this way like i assumed, so i need to know how to set them by myself. Will this even work?

推荐答案

我发现这种行为的原因是 ASP.NET 4 安装错误,我必须重新启用它.在那之后,它正常工作".

I have found out the reason for this behavior was a faulty ASP.NET 4 installation which i had to reenabled. After that it "just worked".

http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx

这篇关于带有 TransportWithMessageCredential 和 clientCredentialType=“Windows"的 BasicHttpBinding的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆