Sending message to remote computer by MSMQ

Hi all,
I want to send a message by MessageQueue.Send(), but the Queue is in a remote computer.
Is it possible, I'm a client in a network , I want to use MSMQ of another client in the network.

Regards...


Answer this question

Sending message to remote computer by MSMQ

  • Tarek Madkour MS

    Hello Aidy,
    Thats true, if I give the machineName\QueueName it should work.
    But when I try to do that I am getting the following error "A workgroup installation computer does not support the operation"

    Can you please help.

    regards
    Scienty

    protected void SendMessage(object sender, EventArgs e)

    {

    MessageQueue MyMessageQ;

    Message MyMessage;

    try

    {

    MyMessageQ = new MessageQueue("ServerName\NewMsmq");

    MyMessage = new Message("Its My Message");

    MyMessageQ.Send(MyMessage);

    Response.Write("<b>Message sent successfully!</b>");

    }

    catch (Exception ex)

    {

    Response.Write("Sorry, an error occured. Error Detail: <font color='red'>" + ex.Message.ToString() + "</font>");

    }

    }



  • Namita Parab

    Dear Aidy,
    I don't understand what do you mean by MSMQ enterprise. All my aim is to deliver or route the incomming MSMQ message at the server to the network clients.

    Is there a way to build MSMQ at each client in the network, and MSMQ at the server. If a message arrives to the MSMQ at the server, then deliver it to the clients private MSMQ.

    Please help.
    Best reghrads...

  • Martin Ottosen

    When opening the queue open

    machinename\queuename

    instead of

    .\queuename

    However you need to be part of an MSMQ enterprise to do it, a stand alone MSMQ installation can only access itself.

  • Sending message to remote computer by MSMQ