大佬教程收集整理的这篇文章主要介绍了windows-authentication – 使用TransportWithMessageCredential和Windows身份验证进行wsHttpbinding,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<wshttpBinding> <binding name="BindingName" .../> <security mode="TransportWithmessageCredential"> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> </wshttpBinding>
服务行为:
<serviceBehaviors> <behavior name="serviceBehavior"> <serviceCredentials> <userNameAuthentication userNamepasswordValidationMode="Windows" /> </serviceCredentials> </behavior> </serviceBehaviors>
禁用匿名身份验证并启用Windows身份验证.
在客户端,使用有效的Windows用户和密码设置凭据,但在每次调用服务时我都会收到以下异常:
使用自托管版本的WCF服务,它可以在有效的Windows帐户下正常运行.
任何帮助表示赞赏.
以上是大佬教程为你收集整理的windows-authentication – 使用TransportWithMessageCredential和Windows身份验证进行wsHttpbinding全部内容,希望文章能够帮你解决windows-authentication – 使用TransportWithMessageCredential和Windows身份验证进行wsHttpbinding所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。