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.
==========================================
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: "FormatNameIRECT=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!
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.
==========================================
{System.Messaging.MessageQueue}? MessageQueue.GetPrivateQueuesByMachine("MyMachine")(0)
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: "FormatNameIRECT=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!