Got exception with GetPrivateQueuesByMachine("RemoteMachine")

D

David

I encountered MessageQueueException when trying to use
the MessageQueue.GetPrivateQueuesByMachine() method to
get a list of private queues from a remote machine,
although I set the private queue permissions to Full
Access for Everyone.

It works fine on the local machine (i.e.
GetPrivateQueuesByMachine(".") ).

What did I do wrong?

Here is the sample output from the Command Window in the
Debug mode.

"MyMachine" is the name of the remote machine.
==========================================
? MessageQueue.GetPrivateQueuesByMachine("MyMachine")(0)
{System.Messaging.MessageQueue}
Authenticate: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
BasePriority: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
CanRead: True
CanWrite: True
Category: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
Container: Nothing
CreateTime: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
DefaultPropertiesToSend:
{System.Messaging.DefaultPropertiesToSend}
DenySharedReceive: False
EnableConnectionCache: True
EncryptionRequired: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
FormatName: "DIRECT=OS:MyMachine\private$\mqis_queue$"
Formatter: {System.Messaging.XmlMessageFormatter}
Id: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
InfiniteQueueSize: 4294967295
InfiniteTimeout: {System.TimeSpan}
Label: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
LastModifyTime: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
MachineName: "MyMachine"
MaximumJournalSize: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
MaximumQueueSize: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
MessageReadPropertyFilter:
{System.Messaging.MessagePropertyFilter}

Path: "FormatName:DIRECT=OS:MyMachine\private$\mqis_queue$
"
QueueName: "private$\mqis_queue$"
ReadHandle: 3528
Site: Nothing
SynchronizingObject: Nothing
Transactional: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
UseJournalQueue: <error: an exception of type:
{System.Messaging.MessageQueueException} occurred>
WriteHandle: 3544
==================================================

Do you know what the problem is? Your help is greatly
appreciated!
 
C

CT

Hmm, not sure what's going on. Can you call the GetPublicQueuesByMachine
method on the remote machine without trhwoing the exception?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top