从 msmq 专用队列切换到公共队列

发布于 2024-11-17 03:49:36 字数 522 浏览 3 评论 0 原文

目前我正在工作或使用 msmq 专用队列,我需要将其更改为公共队列。 我发现,我只需将端点地址更改

address="net.msmq://132.186.201.193/private/IEventQueue" 

address="net.msmq://132.186.201.193/public/IEventQueue"

但是,这不起作用,我面临着异常,因为

打开队列时出错。确保 MSMQ 已安装并正在运行,队列存在并且具有适当的读取权限。内部异常可能包含附加信息。 ---> System.ServiceModel.MsmqException:打开队列时发生错误:队列不存在或您没有足够的权限来执行该操作。 (-1072824317,0xc00e0003)。无法从队列发送或接收消息。确保 MSMQ 已安装并正在运行。还要确保可以使用所需的访问模式和授权打开队列。

我在配置中缺少什么?

问候, 阿尼

Currently I am working or using msmq private queue, I need to change this to public queue.
What I find is, I need to change only endpoint address

address="net.msmq://132.186.201.193/private/IEventQueue" 

TO

address="net.msmq://132.186.201.193/public/IEventQueue"

However, this is not working and i am facing the exception as

There was an error opening the queue. Ensure that MSMQ is installed and running, the queue exists and has proper authorization to be read from. The inner exception may contain additional information. ---> System.ServiceModel.MsmqException: An error occurred while opening the queue:The queue does not exist or you do not have sufficient permissions to perform the operation. (-1072824317, 0xc00e0003). The message cannot be sent or received from the queue. Ensure that MSMQ is installed and running. Also ensure that the queue is available to open with the required access mode and authorization.

What am I missing here , in config?

Regards,
Ani

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七婞 2024-11-24 03:49:36

您无法更改现有队列,您需要创建一个新的公共队列。

编辑以下评论:

是的,您可以远程发布到专用队列,但您需要完全正确地获取名称和地址 - 请参阅http://www.infosysblogs.com/microsoft/2007/02/msmq_sending_message_to_remote.html

You can't change the existing queue, you will need to create a new public queue.

Edit following comment:

Yes, you can post remotely to a private queue, but you need to get the name and address exactly right - see http://www.infosysblogs.com/microsoft/2007/02/msmq_sending_message_to_remote.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文