从msmq私有队列切换到public

时间:2011-06-27 15:05:35

标签: .net queue msmq private public

目前我正在使用或使用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.

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

此致 ANI

1 个答案:

答案 0 :(得分:1)

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

修改以下评论:

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