WCF分布式开发常见错误(18):Binding validation failed 绑定协议验证失败
来源:互联网 发布:北京银行学知支行 编辑:程序博客网 时间:2024/06/05 14:44
测试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.
如图:
原因:
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>
当然这些也可以通过编程来实现~
【老徐的博客】
【作者】:Frank Xu Lei
【地址】:http://www.cnblogs.com/frank_xl/archive/2009/06/16/1503943.html
- WCF分布式开发常见错误(18):Binding validation failed 绑定协议验证失败
- WCF分布式开发常见错误(15):Communication with the underlying transaction manager has failed.
- WCF分布式开发常见错误(26):Authentication failed because the remote party has closed the transport stream.
- WCF分布式开发常见错误(27):Secure channel cannot be opened because security negotiation with the remote endpoint has failed
- WCF分布式开发常见错误(20):TimeoutException was unhandled
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF绑定(Binding)
- WCF 绑定(Binding)
- WPF Binding Validation 数据验证
- 验证视图MAC失败 Validation of ViewState MAC Failed
- 验证视图MAC失败 Validation of ViewState MAC Failed
- 验证视图状态 MAC 失败 ( Validation of viewstate MAC failed )
- 验证视图MAC失败 Validation of ViewState MAC Failed
- svn 导出项目时报certificate validation failed 证书验证失败
- WCF分布式开发常见错误(21):unable to open its IChannelListener.分发器未能打开侦听器
- WCF分布式开发常见错误(16):The Transaction has aborted,事务已经被中断
- WCF分布式开发常见错误(14):无效的操作异常,At least one operation on the ...
- WCF分布式开发常见错误(10):套接字连接中断,The socket connection was aborted
- 经典技术文章翻译(2)Does WCF use or Supports IOCP?WCF是否支持或者使用了IOCP完成端口。
- WCF分布式开发步步为赢(13):WCF服务离线操作与消息队列MSMQ
- WCF热门问题编程示例(2)多个实例调用一个WCF服务操作,需要等待服务响应吗
- WCF热门问题编程示例(1):WCF服务如何获得客户端地址信息
- WCF分布式开发常见错误(19):There was an error opening the queue打开消息队列出错
- WCF分布式开发常见错误(18):Binding validation failed 绑定协议验证失败
- WCF分布式开发常见错误(17):无法启动MSMQ服务
- WCF分布式开发步步为赢(12):WCF事务机制(Transaction)和分布式事务编程
- WCF分布式开发常见错误(16):The Transaction has aborted,事务已经被中断
- WCF分布式开发常见错误(15):Communication with the underlying transaction manager has failed.
- WCF分布式开发常见错误(14):无效的操作异常,At least one operation on the ...
- WCF分布式开发常见错误(13):The transaction under which this method call was executing ,此方法调用的事务被异步中断
- WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求
- WCF分布式开发常见错误(11):There is already a listener on IP endpoint ,IP 终结点 已经存在侦听器,