积极答复者
WCF MSMQ编程时候遇到这个错误:绑定协议验证失败,具体信息:Binding validation failed

问题
-
测试WCF MSMQ编程时候遇到这个错误:绑定协议验证失败,具体信息:Binding validation failed because the binding's MsmqAuthenticationMode property is set to WindowsDomain but MSMQ is installed with Active Directory integration disabled. The channel factory or service host cannot be opened.
大家知道怎么解决吗?
Frank.Xu Lei--谦卑若愚,好学若饥
专注于.NET平台下分布式应用系统开发和企业应用系统集成
Focus on Distributed Applications Development and EAI based on .NET
老徐的博客:http://www.cnblogs.com/frank_xl
答案
-
你好,
请参考:
http://blogs.msdn.com/drnick/archive/2008/03/03/sending-to-msmq-with-integrated-authentication.aspx
http://msdn.microsoft.com/en-us/library/ms731290.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 Frank Xu LeiModerator 2009年6月17日 15:06
-
hi,谢谢回复。已经解决。
原因:
MSMQ验证模式设置为 WindowsDomain,但是MSMQ安装活动目录AD禁用。通道工厂或者服务宿主不能打开。
解决办法:
(1)在配置文件里添加绑定设置节点:
<bindings>
<netMsmqBinding>
<binding name="msmq">
<security mode="None">
</security>
</binding>
</netMsmqBinding>
</bindings>(2)
在服务终结点里,引用这个配置,来设置MSMQ的安全模式:
<endpoint
address="net.msmq://localhost/WCFMSMQService"
binding="netMsmqBinding"
contract="WCFService.IWCFMSMQService" bindingConfiguration="msmq" >
</endpoint>当然这些也可以通过编程来实现~
已经整理成文章:WCF分布式开发常见错误(18):Binding validation failed 绑定协议验证失败
Frank.Xu Lei--谦卑若愚,好学若饥
专注于.NET平台下分布式应用系统开发和企业应用系统集成
Focus on Distributed Applications Development and EAI based on .NET
老徐的博客:http://frank_xl.cnblogs.com- 已标记为答案 Frank Xu LeiModerator 2009年6月17日 15:06
全部回复
-
你好,
请参考:
http://blogs.msdn.com/drnick/archive/2008/03/03/sending-to-msmq-with-integrated-authentication.aspx
http://msdn.microsoft.com/en-us/library/ms731290.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help.- 已标记为答案 Frank Xu LeiModerator 2009年6月17日 15:06
-
hi,谢谢回复。已经解决。
原因:
MSMQ验证模式设置为 WindowsDomain,但是MSMQ安装活动目录AD禁用。通道工厂或者服务宿主不能打开。
解决办法:
(1)在配置文件里添加绑定设置节点:
<bindings>
<netMsmqBinding>
<binding name="msmq">
<security mode="None">
</security>
</binding>
</netMsmqBinding>
</bindings>(2)
在服务终结点里,引用这个配置,来设置MSMQ的安全模式:
<endpoint
address="net.msmq://localhost/WCFMSMQService"
binding="netMsmqBinding"
contract="WCFService.IWCFMSMQService" bindingConfiguration="msmq" >
</endpoint>当然这些也可以通过编程来实现~
已经整理成文章:WCF分布式开发常见错误(18):Binding validation failed 绑定协议验证失败
Frank.Xu Lei--谦卑若愚,好学若饥
专注于.NET平台下分布式应用系统开发和企业应用系统集成
Focus on Distributed Applications Development and EAI based on .NET
老徐的博客:http://frank_xl.cnblogs.com- 已标记为答案 Frank Xu LeiModerator 2009年6月17日 15:06