2011-06-27 64 views
1

目前我正在使用或使用msmq私有隊列,我需要將其更改爲公共隊列。 我覺得是什麼,我只需要改變從msmq私有隊列切換到公共

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

TO

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.

端點地址我在配置中錯過了什麼?

問候, 安仁

回答

1

你不能改變現有的隊列,你需要創建一個新的公共隊列。

編輯如下評論:

是的,你可以遠程張貼到專用隊列,但你需要獲得的姓名和地址完全正確的 - 見http://www.infosysblogs.com/microsoft/2007/02/msmq_sending_message_to_remote.html

+0

是,「公」與「私」 AREN訪問同一隊列的方式不同。私人$ \ queuename和「公共」\ queuename是具有各自獨特屬性的不同項目。 –

+0

你好,我想把我的服務放在差異差異機器上,並且想要修改它,因爲這個原因,我想讓我的隊列成爲公共的,有沒有其他方法,或者我可以用私有隊列做同樣的事情? – user765829