Re: Message queues



Are you running the following line:
MessageQueue.Exists(@"david-1\private$\callerid") on a remote machine (not on
david-1)? if so this is not supported for private queues. Checking the
existence of remote queues can only be done if the queue is public - in which
case active directory is required.

When executing the Exists method on a local machine the proper syntax is:
MessageQueue.Exists(@".\private$\callerid").

Period '.' meaning localhost machine.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"David" wrote:

I have replaced the david-1 with the ip address of david-1, 10.0.0.20, with
the same results.

I now have a simple client on another Vista-32 machine. All I do is call:

MessageQueue.Exists(@"david-1\private$\callerid")

I get an error stating that I have an invalid queue path name. What is wrong
with my path?

"Simon Hart [MVP]" <srhartone@xxxxxxxxx> wrote in message
news:7A629786-B5B2-4889-81A3-A11F96ABF6C5@xxxxxxxxxxxxxxxx
Try using the IP address instead of OS and netbios name. IE:
FormatName:DIRECT=TCP:192.168.0.1\private$\callerid

Where the 192.168.0.1 is your IP of you machine. You could even see if
ppp_peer works for the IP (not sure if it would).
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"David" wrote:

This is all .NET 3.5 with Visual Studio 2008

I have a simple app on Windows Vista-64 that creates a messaging queue.
FormatName:DIRECT=OS:david-1\private$\callerid.

The app then writes a couple of entries. I have verified that the entries
have been correctly created with the Computer Management tool.

I now have a simple app written for the compact framework on an HP iPAQ
HP
2790. MSMQ has been installed on it. When I call
MessageQueue.Exists(@"david-1\private$\callerid"), it returns false. I
can
call this code:

IPAddress[] addresses =
Dns.GetHostEntry("david-1").AddressList;

and the correct address comes back so I know networking and dns are
working
properly.

Is there something special that I have to do on the Vista-64 machine or
on
the iPAQ to make this work?





.



Relevant Pages

  • Re: Message queues
    ... MessageQueue.Existson a remote machine (not ... Visual Developer - Device Application Development MVP ... I get an error stating that I have an invalid queue path name. ... The app then writes a couple of entries. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Message queues
    ... Simon Hart ... Visual Developer - Device Application Development MVP ... I get an error stating that I have an invalid queue path name. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: IOCP critical sections and mutexes
    ... those are pulled from the queue via GetQueuedCompletionStatus ... BTW, for the record, both the user mode accessible mutex and critical ... My packets never go over 2k in size. ... then pushes it in a queue that will be later processed by my main app ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Message queues
    ... I can see two messages in the queue on david-1. ... The server app creates new entries but still the MessageArrived handler is not called and a bogus exception is thrown. ... string deviceIP = String.Empty; ... I now have a simple app written for the compact framework on an HP iPAQ HP 2790. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Message queues
    ... I can run the server app on david-1 at the same time as the ... string deviceIP = String.Empty; ... MessageQueue queue = source as MessageQueue; ... CallerIDClient.CallerID callerid = message.Body as ...
    (microsoft.public.dotnet.framework.compactframework)