Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to access MSMQ 3.0 from Client system

84 views
Skip to first unread message

Manickam@discussions.microsoft.com Sankar Manickam

unread,
Sep 4, 2006, 4:53:01 AM9/4/06
to
Hi,

I have installed MSMQ 3.0 on Windows XP Professional.Now this system going
to be acts as server say MQSERVER so now i send the msg from someother system
say Host #1 using C#,I need to connect MQSERVER from Host #1 [all the systems
are in WorkGroup Mode]

I had tried the Paths as well as formats but all are working for MQSERVER
(i.e locally connect ) but it not when i was tried from Host #1.

MQSERVER System Code
---------------------------------
System.Messaging.MessageQueue mq;
mq = new
System.Messaging.MessageQueue(@"FormatName:DIRECT=OS:ComputerName\Private$\sankar");

Eventhough I have tried from local system,the above step won't works it
says Format Name is invalid but it works for below step.

mq = new
System.Messaging.MessageQueue(@"FormatName:DIRECT=OS:.\Private$\sankar");

Host #1 System Code :
------------------------------
Now I would like to connect MQServer from Host #1.

System.Messaging.MessageQueue mq;
mq = new System.Messaging.MessageQueue
(@"FormatName:DIRECT=IP:10.145.105.61\Private$\sankar");

When I was executing this page,it says the error
System.Messaging.MessageQueueException: Invalid queue path name.

Environments :
-----------------
Both the system installed with Windows XP Professional and MSMQ 3.0 .
Both the system under WorkGroup Mode.

Thanks in advance,
Sankar

Yoel Arnon

unread,
Sep 4, 2006, 1:54:02 PM9/4/06
to
Hello Sankar,
The pathnames you are using look OK to me and shouls work, except for:

"FormatName:DIRECT=IP:10.145.105.61\Private$\sankar"

Instead, try:

"FormatName:DIRECT=TCP:10.145.105.61\Private$\sankar"

(Use "TCP" instead of "IP").

Now, about "FormatName:DIRECT=OS:ComputerName\Private$\sankar" :
what was "ComputerName" in your actual code? Was it resolved to the local
computer name on MQSERVER? This code worked for me....

--
Hope that helps,
Yoel
www.msmq.biz

Sankar Manickam

unread,
Sep 5, 2006, 1:06:02 AM9/5/06
to
Hello Yoel,

Thanks for your reply.

Yes, "FormatName:DIRECT=OS:ComputerName\Private$\sankar" works only for
local machine but it fail to execute when it was in Remote.I had tried
"FormatName:DIRECT=TCP:10.145.105.61\Private$\sankar",but it works only for
local machine and fail to execute in remote.

My Problem is,How to connect MSMQ from "remote system"? I have
installed both the systems windows xp prof as well as MSMQ 3.0 and both the
systems' Messaging related services are running perfectly.Systems are
installed under "workgroup mode" so that i have the option to connect the
system using "Format Names" only instead of Path Names.

I have tried all the Format Names to connect MSMQ from remote but all
are end up with vain.


"FormatName:DIRECT=OS:.\Private$\sankar" [ Its only for Local ]
"FormatName:DIRECT=OS:SNR-148055\Private$\sankar"


"FormatName:DIRECT=TCP:10.145.105.61\Private$\sankar"

All the above steps will wok only in local not in remote.

Is any other step should i take for connect MSMQ from Remote ? I have
only Private Queues in my system.

Thanks in Advance,
Sankar

Sankar Manickam

unread,
Sep 5, 2006, 1:35:01 AM9/5/06
to
Hi Yoel,

Please ignore my previous reply because now I could able to connect
MSMQ from remote sytem.Yes,the cause of problem was to formulating format
name "FormatName : DIRECT" ( the spaces between FormatName and DIRECT cause
the Error "Invalid queue Path Name" )

Thanks for your effort Yoel,

Thanks & Regards
Sankar.

0 new messages