I’m trying to create message queue:
MessageQueue.Create(path, true);
And I’m getting the following exception:
The queue does not exist or you do not have sufficient permissions to
perform the operation.
But queue was created in spite of exception. I tried several times:
- Remove queue
- Invoke create method
- Exception occurs
- Queue was created.
Could someone tell me the reason of exception? How can I avoid it?
Edited:
I tried on different machine. The same behavior.
OS: Windows 7. Console application. Runned by user with admin rights.
I found how it can be avoided.
Path was equal to
@"**localhost**\Private$\Queue".I changed it to
@"**.**\Private$\Queue"and the exception disappeared.But the reason is still unclear.