Hi all,
When reading messages from an MSMQ the following exception
gets thrown every now and then...
System.Runtime.Serialization.SerializationExceptio n
"End of Stream encountered before parsing was completed."
from this call...
MySpecialMessage qMsg = theMessage.Body as MySpecialMessage;
MySpecialMessage has a bool and string variable with some
getters and setters.
I use the default serialization to send and receive the messages
(the BinaryMessageFormatter) and am reading the messages
asynchronously from the queue. More often than not the
messages get deserialized without problem but it screws up
everything when a message does not make it through.
I'd appreciate any advice this group may have as to how I can
ensure that every message gets read without such an exception
occuring, or even better, why this is occuring at all.
I dont believe it could be a threading issue as there is only
one component reading the messages from the queue.
Thanks,
Peter.