Re: Message queues



Simon,

You know everything. :-)

Paul T.

"Simon Hart [MVP]" <srhartone@xxxxxxxxx> wrote in message
news:35C3C7D8-7973-466E-BDDF-4EB3F9E33E52@xxxxxxxxxxxxxxxx
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 on ... Visual Developer - Device Application Development MVP ... I get an error stating that I have an invalid queue path name. ... I have a simple app on Windows Vista-64 that creates a messaging queue. ...
    (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: Creating a simple windows messaging app
    ... a broker app that receives packets from a canbus and pushes them out to ... each application thread a copy of the packet. ... appThread responds to: ... consists of putting the message into a queue to be sent to the bus (no ...
    (microsoft.public.vc.mfc)
  • Re: Creating a simple windows messaging app
    ... a broker app that receives packets from a canbus and pushes them out to ... each application thread a copy of the packet. ... appThread responds to: ... consists of putting the message into a queue to be sent to the bus (no ...
    (microsoft.public.vc.mfc)
  • 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)