I tried to develop a codeunit, using Navision Application Server 4.0, to read and answer commands coming from MS Queue, but I can't make it work properly.
I followed what presented in MSDN document:
Talking with Navision: Say Hello to Navision and Expect Navision to Be Polite, but the trigger doesn't fire when a message is sent to the queue.
I tried using standard Microsoft DLL but the result is the same.
I tried also to place the code in a form, without using NAS, but it still doesn't work.
I wrote a small program in VB.NET to test the functionality of the queues, but VB.NET fires the trigger correctly.
Can someone help me?
Thanks,
Federico
Comments
Make sure that the SingleInstance property for the codeunit is set to Yes.
/Bruno
Bruno
http://blogs.ittoolbox.com/erp/smb
the property is correctly set. I tried also using a Form, without Application Server, leaving the form opened, but it still doesn't work.
Federico
Regards,
...
Everybody on-line.
...
Looking good!
Could you give us some code?
...
Everybody on-line.
...
Looking good!
RIS Plus, LLC
NavComm points to the Codeunit 50000, which follows:
I don't think the problem is about the Application Server, because the same situation (the function CC2::MessageReceived is never executed) happens when I create a Form and keep it running while sending a message on the queue.
Thanks,
Federico
[/code]
Jorge
“This posting is provided "AS IS" with no warranties, and confers no rights.”
that was the problem!
I created the message using a VB.NET program I wrote, and I used a different label.
Now it works!
Thanks again,
Federico