My MSMQ is in workgroup installation.
I tried to add an event handler for the ReceiveCompleted event and to do
It I try to use the SetPermissions. but I get an error of
“A workgroup installation computer dose not support the operation”
The code is:
MessageQueue myQueue = new MessageQueue(".\\myQueue");
System.Messaging.Trustee trustee = new Trustee(@".\\myQueue");
MessageQueueAccessControlEntry ace = new
MessageQueueAccessControlEntry(trustee,System.Mess aging.MessageQueueAccessRights.FullControl);
myQueue.SetPermissions(ace); // Error here!!!
myQueue.Formatter = new XmlMessageFormatter(new type[]{typeof(String)});
// Add an event handler for the ReceiveCompleted event.
myQueue.ReceiveCompleted += new
ReceiveCompletedEventHandler(MyReceiveCompleted); // Error here too!!!
// Begin the asynchronous receive operation.
myQueue.BeginReceive();
Does anyone know how to pass this problem?
Moti Saba