I am trying to send messages to MSMQ on Windows 7 using C#. The code is as below:
using(var q = new MessageQueue(".\Private$\hellomsmq"))
{
q.Send(new Message());
}
But when I refresh in Computer Management the 'number of messages' (Message Queuing/Private Queues/hellomsmq) stays at 0. I did not get any exceptions/errors while performing send().
Can anyone help please. Thanks!