Chriss688Sub
September 5th, 2002, 04:58 PM
Calling the C# (MSMQ) “Message.Body” I get the exception “Target type array is missing. The target type array must be set in order to deserialize the XML-formatted message”.
Is the "Target type array" set by me on reception or the sender?
My message reception event (asynch) is set by:
[code start]
MessageQueue mq = new MessageQueue( GetReceivingQueuePath() );
mq.Formatter = new XmlMessageFormatter( new Type[] {typeof(String) } );
mq.ReceiveCompleted += new ReceiveCompletedEventHandler( NewMessageReceived );
mq.BeginReceive();
[code stop]
Also I am wondering:
I use "BeginReceive" for Asynch messages, but how can I stop the process between messages?
The "EndReceive" member takes a parameter for completion of a received message, but what if I wish to "pause" for a few minutes the message reception; do I have to wait for a message to come in before I do so?
Any info appreciated,
Chris
Is the "Target type array" set by me on reception or the sender?
My message reception event (asynch) is set by:
[code start]
MessageQueue mq = new MessageQueue( GetReceivingQueuePath() );
mq.Formatter = new XmlMessageFormatter( new Type[] {typeof(String) } );
mq.ReceiveCompleted += new ReceiveCompletedEventHandler( NewMessageReceived );
mq.BeginReceive();
[code stop]
Also I am wondering:
I use "BeginReceive" for Asynch messages, but how can I stop the process between messages?
The "EndReceive" member takes a parameter for completion of a received message, but what if I wish to "pause" for a few minutes the message reception; do I have to wait for a message to come in before I do so?
Any info appreciated,
Chris