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
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
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
Thanks for your effort Yoel,
Thanks & Regards
Sankar.