MessageQueue.GetPrivateQueuesByMachine() does not work on windows server 2008 R2 with SP1
-
Tuesday, August 07, 2012 11:13 AM
Hi,
I am trying to get the private queues from the remote server (windows server 2008 R2 with SP1) using MessageQueue.GetPrivateQueuesByMachine("RemoteServerName/IPAddress") but when i use the same I get the below exception. This still works when my server is windows server 2003.
Exception message: Message Queue service is not available.
I have installed MSMQ on the server still I am confused.
Why has this stopped working?? Is this a Bug in .Net? if Yes please point me to the hot fix...
My code snippet is below :-----
// Get a list of queues on the specified computer.
MessageQueue[] QueueList = MessageQueue.GetPrivateQueuesByMachine("IP address of windows 2008 r2 server");
// Display the paths of the queues in the list.
foreach(MessageQueuequeueItem inQueueList)
{
Console.WriteLine(queueItem.Path);
}
- Moved by Mike FengMicrosoft Contingent Staff Wednesday, August 08, 2012 12:30 PM MSMQ (From:Common Language Runtime)
All Replies
-
Wednesday, August 08, 2012 12:29 PM
Hi Shirzad,
Welcome to the MSDN Forum.
I have moved this MSMQ issue to the dedicated forum for better support.
Thank you for your understanding and support.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Monday, August 13, 2012 9:45 AM
thanks...
I am eagerly waiting for someone to reply on this..
-
Thursday, August 16, 2012 11:22 AM
Hi,
have you verified the permissions between the 2 machines?
Thanks
Sudhir
-
Friday, August 17, 2012 9:16 AM
hi Sudhir,
What kind of permission are you referring to.. Can you please elaborate more.. I am able to insert messages into the remote server machine private queue's.. The problem arrises when i use the below method, then it throws an exception
MessageQueue.GetPrivateQueuesByMachine("RemoteServerName/IPAddress")


