MSMQ sending message problem... (c#)
Posted
by Paul
on Stack Overflow
See other posts from Stack Overflow
or by Paul
Published on 2009-04-01T16:17:24Z
Indexed on
2010/06/03
9:14 UTC
Read the original article
Hit count: 130
My code :
string _path = "mymachine\\Private$\\example";
// create a message queue object
MessageQueue MQueue = new MessageQueue(_path);
// create the message and set the base properties
Message Msg = new Message("Messagem");
Msg.ResponseQueue = MQueue;
Msg.Priority = MessagePriority.Normal;
Msg.UseJournalQueue = true;
Msg.Label = "gps1";
// send the message
MQueue.Send(Msg);
// close the mesage queue
MQueue.Close();
No error, but nothing in my MessageQueue... Any help?
© Stack Overflow or respective owner