Click here to Skip to main content
15,070,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
Is there any way to create a public message queue on a remote machine?
I've tried:
C#
MessageQueue.Create(@"FormatName:DIRECT=OS:remotemachinename\nameofqueue");

Which gives the following error "Cannot create a queue with the path FormatName:DIRECT=OS:remotemachinename\testqueue."
C#
MessageQueue.Create(@"remotemachinename\nameofqueue");
which gives the error "Access to Message Queuing system is denied."

When I try to change the permissions on the remote machine, via the management console, I get this error:

"The security descriptor cannot be set. Error: Access is denied." and
"Unable to save permission changes on .(null)"


Any help would be greatly appreciated.
Posted
Updated 29-Aug-13 2:44am
v5
Comments
Zoltán Zörgő 29-Aug-13 8:46am
   
First of all: your local account is trusted on the remote machine to create queue? You can do this by default if you are in a domain and you have some sort of delegated local admin right on both machines.
Member 10240213 29-Aug-13 9:17am
   
What do you mean by: "your local account is trusted on the remote machine to create queue"? Both the local and the remote machine are in the same domain. For test purposes the test application is run as a console app, thus running as the current local user. I have tried to run the console app as a user with administrative privileges on the remote machine with the same error.
When I try to modify the permissions on the security tab for the msmq on the remote machine I receive the above error messages, "The security descriptor...."

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900