工作组模式下 WCF MSMQ 的配置
在尝试部署服务时,我发现它无法启动,因为 MSMQ 处于工作组模式。 我创建了一个专用队列,并更改了配置文件以引用它,但 WCF 服务主机拒绝以以下消息启动:
绑定验证失败,因为绑定的 MsmqAuthenticationMode 属性设置为 WindowsDomain,但安装 MSMQ 时禁用了 Active Directory 集成。
谁能告诉我如何在配置文件中指定工作组模式? 我在MSDN中找到的信息都是关于修改代码中的设置,并没有提到如何在配置文件中指定这一点。
在我拥有的配置文件中,绑定标记为空(
),但服务端点指定了binding="netMsmqBinding"
,我想这意味着正在使用默认配置。
In trying to deploy a service I have found that it won't start because MSMQ is in workgroup mode. I have created a private queue instead and changed the config files to refer to it, but the WCF service host refuses to start with this message:
Binding validation failed because the binding's MsmqAuthenticationMode property is set to WindowsDomain but MSMQ is installed with Active Directory integration disabled.
Can anyone tell me how to specify workgroup mode in the config file? The information I find in MSDN is all about modifying the setting in code, and makes no mention of how to specify this in the config file.
In the config file that I have, the bindings tag is empty (<bindings />
) yet the service endpoint specifies binding="netMsmqBinding"
which I imagine means a default configuration is in use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我们遇到这个问题时
在测试环境中工作。在最终交付期间,即使这样也不起作用..最后这个起作用了
When we faced the issue
<security mode="None">
worked in the test environment.During final delivery , even that didn't work.. Finally this one worked
您应该在队列上设置匿名集成身份验证。 查看此知识库了解原因和方法。
在 msdn 中,有一个使用工作组模式的很好的示例。 请注意,该示例使用事务队列。 所以你必须让你的队列具有事务性。 这只能在创建队列时完成。
发布您的代码和配置,以便我们可以对其进行评论。
You should set anonymous integration authentication on the queue. Look at this kb on why and how.
In the msdn there is a good example of working with workgroup mode. Note that the example use transactional queue. So you will have to make your queue transactional. This can be done only when creating the queue.
Post your code and config so we can comment on them.