MessageQueueInstaller.Permissions

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 :)
 

mrd

Joined
Jun 1, 2005
Messages
2
Reaction score
0
Hi Steve

I have experienced the same problem. Did you find any solution to this?

thanks
 

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