MSMQTraceListener and XML Message - URL Encoded

Topics: Building and extending application blocks, Logging Application Block
Oct 10, 2007 at 9:17 PM
I've created a custom message formatter that builds an XML message out of the LogEntry object. I attempted to serialize the LogEntry, but ICollection and IDictionary properties don't allow for serialization, even though LogEntry is tagged with the serializable attribute. Anyway, the formatter is very simple and works correctly, except when I attempt to use it in conjunction with a MSMQTraceListener, the message that gets written to the queue has my XML string semi-URL Encoded. Simply put, my XML comes through with &lt; and &gt; instead of < and >.

It is a nitpicky little thing, but it seems like there should be something to get around this. When reading the message from the queue, the XML nodes aren't recognized correctly because of the mix.

Thanks,
Art Johnson