目前我正在工作或使用 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
发布评论
评论(1)
您无法更改现有队列,您需要创建一个新的公共队列。
编辑以下评论:
是的,您可以远程发布到专用队列,但您需要完全正确地获取名称和地址 - 请参阅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