Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI Guyz,

i'n having a problem in creating a public queue/private queue in a remote computer,,

here's my code:

C#
foreach (var item in ConfigData.DestinationPath)
           {

               if (!MessageQueue.Exists(item.value))
               {
                   queue = MessageQueue.Create(item.value, true);
               }
               else
               {
                   continue;
               }
           }


here's the error:
Access to Message Queuing system is denied.

what shall i do?

thanks, pls help..
Posted

Provide Full-Permissions to "Network Services" Account for your "Message Queueing".

1) Open "Compute Management" console.
2) Right Click on "Message Queueing" and click on Properties.
3) Select "Security" Tab, search for "Network Services" Account and provide Full-Permissions to it.
 
Share this answer
 
Comments
D K N T H 22-Nov-11 0:18am    
is this only way to create a public/private in queue in remote computer? How can do this in c# code? thanks.
RaisKazi 22-Nov-11 1:37am    
I misunderstood your question initially, I thought you are facing Message Sending Problem. Well, you can not create a "New" Queue this way. Create a New Private/Public Queue on that specific Server/Machine manually.
D K N T H 22-Nov-11 2:50am    
is that the only way?
RaisKazi 22-Nov-11 4:04am    
Yes as long as I know its does not possible this way(for remote machines), You may try by providing Administrative Rights to "Network Services".
You need to have the power user (or) administrator access rights in the remote machine to complete this operation.
 
Share this answer
 
Comments
D K N T H 21-Nov-11 23:59pm    
how can i do that,, can i programmatically do that?

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