public System.Messaging.MessageQueue mq; public static Int32 i = 0; protected void Button1_Click(object sender, EventArgs e) { System.Messaging.Message mm = new System.Messaging.Message(); mm.Body = TextBox1.Text; mm.Label = "MsgI" + i.ToString(); i++; mq.Send(mm);//Error msg:Object reference not set to an instance of an object. }
mq
System.Messaging.MessageQueue
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)