Options

MSMQ

t_craccot_cracco Member Posts: 32
Hi,

I have a problem sending messages between message queues. The sending of the messages is done using the automation of NAV2009 R2 (Classic). The receiving is done by .NET variables in NAV2016. I currently receive the send messages in my queue, but when I try to read them from NAV 2016 I keep getting the same error: "Cannot recognize the serialization format".
I have tried "System.Messaging.ActiveXMessageFormatter" and "System.Messaging.XmlMessageFormatter" but no luck.

Does anybody has an idea on how to continue?

nfjorn8kqbsk.png

The code that is execute:
QMsg := Q.Receive(TS.TimeSpan(0,0,10));
QMsg.Formatter := QBinaryFormatter.BinaryMessageFormatter;
CLEAR(myVariant);
myVariant := QMsg.Body;

Regards,
Tom

Best Answer

Answers

  • Options
    parmparm Member Posts: 49
    Hi,

    Please go the Message Queue and check the body of the message.
    In the body you can try to see the kind of message and try to guess how it was serialized.

    Regards and good luck.

    parm

Sign In or Register to comment.