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:
I get the following errors:
Additional information: Argument 'Prompt' cannot be converted to type 'String'
Format name is invalid.
Any help would be appreciated.
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.