Paul
Paul

Reputation: 12819

MSMQ sending message problem... (c#)

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?

Upvotes: 4

Views: 4250

Answers (1)

Paul
Paul

Reputation: 12819

I found the problem... My MessageQueue was created with transaction true...

Upvotes: 7

Related Questions