【问题标题】:switching from msmq private queue to public从 msmq 私有队列切换到公共队列
【发布时间】:2011-09-23 14:35:56
【问题描述】:

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

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

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

但是,这不起作用,我正面临异常

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.

我在这里缺少什么,在配置中?

问候, 阿尼

【问题讨论】:

    标签: .net queue msmq private public


    【解决方案1】:

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

    编辑以下评论:

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

    【讨论】:

    • 是的,“公共”和“私人”不是访问同一队列的不同方式。 Private$\queuename 和 "Public"\queuename 是不同的项目,具有自己独特的属性。
    • 你好 frnds,我想把我的服务放在 diff diff 机器上并想利用它,因此我想让我的队列公开,有没有其他方法或者我可以做同样的事情也有私人队列?
    猜你喜欢
    • 2011-03-24
    • 2013-07-01
    • 2014-12-01
    • 2011-03-20
    • 2016-02-23
    • 2018-02-02
    • 2014-04-07
    • 1970-01-01
    • 2014-05-06
    相关资源
    最近更新 更多