How to read the body of a WCF netMsmqBinding message?

  • Thread starter Thread starter SheikGoo
  • Start date Start date
S

SheikGoo

Hi,
I'm trying to read from a webforms app in C# the BODY of the messages
from the transactional system dead letter queue pre-defined by MSMQ
The messages can be read ok, but when trying to read the Body property
I
get an exception.:
InvalidOperationException, with the message {"Cannot deserialize the
message passed as an argument. Cannot
recognize the serialization format."}

Context: the messages I'm trying to read from the dead letter queue
are messages generated via WFC service invocation using
netMSMQBinding, so they are not "ordinary" messages.
Our customer needs an app that allows a system administrator to read
the contents of the message from the dead letter queue (that would
need extra parsing
of the message body I guess, *IF* I can finally read the darn
body :-) ), maybe change the original contents of the body, and then
re-enquee (or delete) the message to it's original queue (or a
modified copy of the original message).

Thanks in advance!!!
 
Back
Top