Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

To request report messages, a report queue must be specified and tracing must be enabled.

AfterOnce a message is sent with tracing enabled, you can use Active Directory Manager to view the report messages Message Queuing sent to the report queue.

Report queues are typically specified by the MSMQ Administrator through Active Directory Manager.

You can select a known report queue, or specify a new queue and Active Directory Manager will create the queue for you.

Note:
Report queues are typically created through Active Directory Manager. To create a report queue using MSMQQueueInfo.Create, specify the following queue type (GUID) when creating the queue.
Note:
{55EE8F32-CCE9-11CF-B108-0020AFD61CE9}
To enable tracing
  1. Using Active Directory Manager, make sure a report queue has been specified.

  2. In your application, define the structures needed to send the message.

  3. Call MSMQQueueInfo.Opento open the destination queue with send access.

  4. Specify MSMQMessage.Trace, setting it to MQMSG_SEND_ROUTE_TO_REPORT_QUEUE.

  5. (Optional) Specify other message properties as needed.

  6. Call MSMQMessage.Sendto send the message.

  7. Call MSMQQueue.Closeto close the destination queue.

See Also