如何将Msmq配置从工作组模式更改为域模式? [英] How to change Msmq configuration from workgroup mode to domain mode?
问题描述
在机器A上有一个名为queue1
的公共队列.我想从机器B向该队列发送消息.为了实现这一点,我编写了该c#代码.
There is a public queue named queue1
on machine A. I want to send messages to this queue from machine B. In order to achieve this, I wrote that c# code.
if (MessageQueue.Exists("machineA\queue1"))
{
label1.Text = "queue found";
}
else
{
label1.Text = "queue could not be found";
}
但是Exists()
方法在计算机B上返回false
.相同的代码在计算机C上运行良好.
But Exists()
method return false
on machine B. The same code works well on machine C.
我发现与msmq域模式和工作组模式有关的东西.我认为msmq在工作模式下安装在计算机B上.
I found somethings related with msmq domain mode and workgroup mode. I think that msmq installed in workgoup mode on machine B.
如何将此配置从工作组模式更改为域模式?
How can I change this configuration from workgroup mode to domain mode?
推荐答案
HKEY_LOCAL_MACHINE \ Software \ Microsoft \ MSMQ \ Parameters \
HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\Parameters\
检查REG_DWORD workgroup
的数据.是1还是0?
Check the data for the REG_DWORD workgroup
. Is it 1 or 0?
- 1是工作组模式.
- 0为AD模式
这篇关于如何将Msmq配置从工作组模式更改为域模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!