Question : Trying to write to MSMQ but no messages going in

Using C# VS 2008 I am attempting to write to a message queue.  I manually setup a private queue on my Vista machine.  I run the follwing code to write but there are no messages in queue, anybody know what I am missing

The appsettings key for the queue is
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
private void SendMsgToMQ(string msgData, int orderId)
        {
            try 
	        {
                string queueName = ConfigurationManager.AppSettings["MSMQ_queue"];
                MessageQueue msgQueue = new MessageQueue(queueName);
		        Message msg = new Message(msgData);
                msg.AppSpecific = orderId;
    		    msgQueue.Send(msg, String.Format("Order ID {0}", orderId));

		        msg.Dispose();
		        msgQueue.Close();
                msgQueue.Dispose();
            }
	        catch (Exception)
	        {
		        throw;
	        }
        }

Answer : Trying to write to MSMQ but no messages going in

Got the problem.

My queues are transactional.  Code writing the the queue is not using transaction.  I should get a decent error but I am not.  So something to remember - If using transactional queue use transaction ion your code

Gotta delete this.  No points, sorry chaps.

Moderator pls archive this question unless someone has an objection

Thank you for your participation
H
Random Solutions  
 
programming4us programming4us