Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSMQ Permissions

Status
Not open for further replies.

DerPflug

Programmer
Mar 28, 2002
153
US
I am creating a queue programmatically based on whether or not it exists already. After creating it I set the permissions for the queue. However, I'm throwing an exception. Here is my code:


Code:
Dim Qname as string = ".\Private$\MyQueue"
Dim Q as MessageQueue


If Not MessageQueue.Exists(Qname) Then
     Q.Create(Qname)
     Q.SetPermissions("Me@MyCompany.com", MessageQueueAccessRights.FullControl, AccessControlEntryType.Set)
     Q.Close()
End If

I get the following errors:
Additional information: Argument 'Prompt' cannot be converted to type 'String'

Format name is invalid.

Any help would be appreciated.
 
Q.SetPermissions("Me@MyCompany.com",MessageQueueAccessRights.FullControl, AccessControlEntryType.Set)
 
odd, none of those parameters are "prompt" Not sure if I'll have time to play with this though :(

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top