我的问题有点混乱。 我有2个服务器(Windows Server 2008 R2)安装了MSMQ,我想使用服务器B在服务器A上使用MessageQueue。当我尝试接收它时,总是抛出一条消息错误: "Access to message queuing system is denied." 。
他们之间的IP。
服务器A:172.31.23.130
服务器B:172.31.23.195
FormatName:Direct = TCP:172.31.23.195 \ private $ \ queuesource(它正在发送)
我在.Net C#中的代码基本上是这样的:
MessageQueue _sourceQueue = new MessageQueue(); _sourceQueue.Path = "FormatName:Direct=TCP:172.31.23.195\private$\queuesource"; _sourceQueue.Receive(); // << here throw an exception.
其实我只使用Private Queue来避免Active Directory的问题。 例如,如果服务器DNS失败,则所有networking都将失败。 我不知道什么了。