This error was encountered while testing WCF MSMQ programming: Binding protocol validation failed, specific information: Binding validation failed because the Binding ' s MsmqAuthenticationMode property is Set to Windowsdomain but MSMQ are installed with Active Directory integration disabled. The channel factory or service host cannot be opened.
As shown in figure:
Reason:
The MSMQ authentication mode is set to Windowsdomain, but the MSMQ installation Active Directory ad is disabled. The channel factory or service host cannot be opened.
Solution:
(1) Add the binding Settings node in the configuration file:
<bindings>
<netMsmqBinding>
<binding name="msmq">
<security mode="None">
</security>
</binding>
</netMsmqBinding>
</bindings>
(2) In the service endpoint, refer to this configuration to set MSMQ security mode:
<endpoint
address="net.msmq://localhost/WCFMSMQService"
binding="netMsmqBinding"
contract="WCFService.IWCFMSMQService" bindingConfiguration="msmq" >
</endpoint>
Of course, these can also be programmed to achieve ~