在尝试部署服务时,我发现它无法启动,因为 MSMQ 处于工作组模式。我创建了一个专用队列,并更改了配置文件以引用它,但 WCF 服务主机拒绝以以下消息启动:
Binding validation failed because the binding's MsmqAuthenticationMode property is set to WindowsDomain but MSMQ is installed with Active Directory integration disabled.
谁能告诉我如何在配置文件中指定工作组模式?我在MSDN中找到的信息都是关于修改代码中的设置,并没有提到如何在配置文件中指定这一点。
在我拥有的配置文件中,绑定(bind)标记为空( <bindings />
),但服务端点指定 binding="netMsmqBinding"
我想这意味着正在使用默认配置。
最佳答案
当我们遇到这个问题时
<security mode="None">
在测试环境中工作。
在最终交付期间,即使这样也不起作用..最后这个起作用了
<security>
<transport
msmqAuthenticationMode="None"
msmqProtectionLevel="None"/>
</security>
关于wcf - 工作组模式下 WCF MSMQ 的配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/459815/