Sending Messages from a CE Device to PC and back

Hello

Im having problems using MSMQ to send messages from a CE Device to a PC I have created the queues on the 2 platforms but when I try to send a message to or from I get a queue not found error. using server explorer I have verified that the PC queue exists and using msmqadm I have verified the the CE Device queue exists.

output from admadm for the CE Device Status command:

0. DIRECT=OS:RLC_XSCALE\Private$\Client;JOURNAL
PRIVATE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes
1. DIRECT=OS:RLC_XSCALE\Private$\Client
PRIVATE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes
2. DIRECT=OS:RLC_XSCALE\PRIVATE$\order_queue$
MACHINE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes
3. MACHINE=0dabb9e6-b032-d96c-cf5b-29da644da953;JOURNAL
MACHINE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes
4. MACHINE=0dabb9e6-b032-d96c-cf5b-29da644da953;DEADLETTER
MACHINE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes

Output from admadm for the CE Device Verify command:

Computer name is RLC_XSCALE

MSMQ daemon installed.

NETREG daemon installed.

MSMQ configured.
Default Quota: 256
Port: 1801
Ping Port: 3527
QM GUID: 0dabb9e6-b032-d96c-cf5b-29da644da953
Network tracking: enabled
Start At Boot: yes
Base Dir: \Temp\MSMQ
Base Dir exists. Contents:
  $localhost$ - Client.jr
  $localhost$ - Client.iq
  MQLOGFILE.TXT
  sequence.dat
  strings.dat
  $localhost$ - order_queue$.iq
  $localhost$ - 0dabb9e6-b032-d96c-cf5b-29da644da953.jq
  $localhost$ - 0dabb9e6-b032-d96c-cf5b-29da644da953.iq

NETREG configured.
Cycle duration: 300
Use Redirector's netBIOS: yes
Track network: yes


Answer this question

Sending Messages from a CE Device to PC and back

  • ScottyWakefield

    No, but your favorite search engine sure does...



  • learningtoprogram22

    1. So you can send from desktop to device, they just never arrive because of #3 below. That is normal.

    2. No, it's not a problem. Device can't be a member of AD and it's not required for MSMQ to function. That is why you can only work with private queues.

    3. That probably means MSMQ on device is configured incorrectly. Likely you've failed to enable binary protocol. In that case MSMQ works only for local queues, it can not send or receive any remote messages. I would suggest hard resetting your device and doing it one more time following instructions exactly.

    4. That is how it should be as devices can't be AD members.



  • HighTower

    Thanks for your help... I was able to get the desktop computer to succesfully send messages to the CE device. but the CE device can not send a message back to the desktop computer. when I check the status of the queue on the CE device it is listed as CONNECTED and the function returns no expecptions when run, but the messages never get to the destination Queue. does anybody have any ideas
  • Rico5

    Hello... I have checked all of the above items but I still can't recieve message from the device. my network configuation is very simple. I have laptop computer, a wireless access point and a windows CE device. I have set the IP addresses to 10.0.4 for the laptop and 10.0.0.6 for the CE devcice. I can ping in both directions and an as i stated above I can recieve messages from the laptop. the only firewall I have is the windows xp firewall. I have tried disabling it and still I have the problem. when I look at the status of the queue on the CE device it says " Remote connection" but the message I sent is not in the queue and no exceptions are thrown. 

    Another item of possible note the NETREG Demon is listed as not installed ...


  • Caliendo

    do you have a link for VxUtils ...
  • ladydee

    As you've seen if these posts above, MSMQ does not care nor can verify if remote private queue actually exists. So if it throws an exception saying "Can't find the queue", your configuration is most likely wrong (or you're not using FormatName but that's not the case).

    Device would say that if you forgot to enable binary or SRMP protocols effectively limiting MSMQ to local queues only. Desktop might have similar mechanism. Try redoing MSMQ setup in the exact order described in Mark’s blog, don’t forget to enable binary protocol.

    I would also suggest trying OS queue notation instead of TCP:

    FormatName:Direct=OS:10.0.0.6\Private$\client



  • Nidal-Fouad-Hajj-Youssef

    So you've installed VxUtils (or other network diagnostics utility) on to device and verified MSMQ ports are opened on desktop, is that right

    NETREG as a separate entity is gone starting CE 4, it was a separate driver before that.

    Also, do you see messages in the outgoing queue on device < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />



  • Knight99

    When I try the send in either way I get the queue not found error...

    **** Here is the code for sending to the Client****

    Private Sub TestSendToClient_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim myQueue As New MessageQueue("FormatName:DIRECT=TCP:10.0.0.6\Private$\client")

    Try

    myQueue.Send("Public queue by path name.")

    Catch ex As MessageQueueException

    End Try

    End Sub

    **** Here is the code for sending to the server****

    Private Sub TestSendToServer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Try

    Dim myQueue As New MessageQueue("FormatName:DIRECT=TCP:10.0.0.4\Private$\Server")

    myQueue.Send("Public queue by path name.")

    Catch ex As MessageQueueException

    End Try

    End Sub


  • Geoff L

    I have tried your suggestions and have verified the following

    1) The messages on the Desktop machine are being queued for delivery correctly ( i can see them in the outgoing queue for my desktop machine)

    2)My CE device is not listed in the Active Directory for my test network ( is this a problem)

    3)Using "Direct=OS:10.0.0.6\Private$\server" still gives me the queue not found error

    4) My server is running in workgroup mode

    any further sugestions

     

     


  • gdrivas232096

    Thanks for your reply... I had already looked at all of these previous sugestions before posting hence the new post. I can ping both the desktop and the device, is there a way to verify that everything is configured correctly ...I'm sure I must be over looking something

    Thanks again


  • 87jerome

    That means MSMQ can't deliver it. Most common reasons:

    - Incorrect firewall settings on the destination computer (e.g. MSMQ ports are closed).

    - Unreachable destination host, e.g. due to networking issues.

    - Incorrect queue name.



  • Torben77

  • Sending Messages from a CE Device to PC and back