I get the much talked about ":Invalid queue path name" error.
I am tryin to write to a private queue on the different box.
I have tried everything.
"DIRECT=TCP:10.2X2.1X.X\PRIVATE$\msmqtest";
"DIRECT=OS:ofrdidgifdfn-prfdn2\PRIVATE$\msmqtest";
"DIRECT=OS:Mike02\PRIVATE$\MyQueue";
"Mike02\PRIVATE$\MyQueue"
I am have insallted msmq with the default settings. i have ads but i
have not configured mmsq for ads(I dont know if i have to)
Please Help
Thanks
All four of those are invalid path names. The first three are Direct Format
Names (not path names at all).
The fourth is possibly a path name but is invlaid in your environment
because you are running MSMQ in Workgroup mode. In Workgroup mode (no ads)
there's no way for your local QM to figure out who/what 'MIKE02' is.
If you are going to run MSMQ in Workgroup mode and access remote systems,
you have to use Direct Format Names to do it, you can't use a path name.
The first and third examples look like your best bet but there are a number
of caveats.
1) The backslash character has special handling in C/C++ and C#. If you are
using one of those languages you need to use the double backslash to escape
from that special handling.
2) If you are using the COM API you need to use the format name property
(not the path name property) when specifying this string.
3) If you are using the System.Messaging namespace then you use the path
property but you add "formatname:" to the start of the string to indicate
that you've really supplied a format name. For example
MessageQueue q = new MessageQueue
(""Fromatname:DIRECT=OS:Mike02\\PRIVATE$\\MyQueue");
If all this doesn't help, try posting the actual code fragment you are using
to try and open the queue and an indication of the error result you get when
you try (and an indication of where the error happens).