S
steve baker
I have a .NET service app. It needs to monitor a queue for
incoming messages.
I am creating the queue during the install with a
MessageQueueInstaller component.
The service runs as LocalSystem, which by default does not
have access to read the queue.
I have tried the following code: (
Dim myACL As New Messaging.AccessControlList
myACL.Add(New Messaging.AccessControlEntry( _
New Messaging.Trustee("SYSTEM"),
Messaging.GenericAccessRights.Read,
Messaging.StandardAccessRights.Read,
Messaging.AccessControlEntryType.Allow))
QueueInstaller.Permissions = myACL
The install succeeds, the messagequeue appears to have the
correct permissions (in the properties box),
but the service cannot read from the queue. If I delete
the permissions and recreate them exactly(in the
properties box),
then restart the service, it works.
I assume there is something wrong with my code, but there
is very little documentations on the
MessageQueueInstaller.Permissions property and the objects
passed in as parameters. I have not found a single
extensive code example either.
Please Help
incoming messages.
I am creating the queue during the install with a
MessageQueueInstaller component.
The service runs as LocalSystem, which by default does not
have access to read the queue.
I have tried the following code: (
Dim myACL As New Messaging.AccessControlList
myACL.Add(New Messaging.AccessControlEntry( _
New Messaging.Trustee("SYSTEM"),
Messaging.GenericAccessRights.Read,
Messaging.StandardAccessRights.Read,
Messaging.AccessControlEntryType.Allow))
QueueInstaller.Permissions = myACL
The install succeeds, the messagequeue appears to have the
correct permissions (in the properties box),
but the service cannot read from the queue. If I delete
the permissions and recreate them exactly(in the
properties box),
then restart the service, it works.
I assume there is something wrong with my code, but there
is very little documentations on the
MessageQueueInstaller.Permissions property and the objects
passed in as parameters. I have not found a single
extensive code example either.
Please Help