tags:

views:

328

answers:

0

Hi,

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. But Exists method return false on machine B. But the same code works well on machine C. 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? thanks

        if (MessageQueue.Exists("machineA\queue1"))
        {
            label1.Text = "queue found";
        }
        else
        {
            label1.Text = "queue could not be found";
        }