0
votes

as mentioned in the title of this post that I am having issues in connecting to a remote private msmq queue on windows 7 machine on workgroup.

I created a local queue and system is working and am able to succesfully queue my messages in the local queue but when I try to connect to a remote queue to queue my message i am unable to access it.

Both msmq services are installed on windows 7 machine and trying to access it using winforms c#. I tried so many blogs but dont know what I am missing. This is the error message I am receiving

Access to Message Queuing system is denied

and this is what I am using to connect to remote queue

FormatName:Direct=OS:machinename\private$\TestQueue

I also tried to give the ipaddress as well like this but no help

FormatName:Direct=TCP:ipaddress\private$\TestQueue

I have gone through lots of blogs but nothing helped.

Please suggest.

Thanks

1
Are you trying to connect with the same transaction configuration as the remote queue? In other words, if the remote queue is transactional, your connection should be also, and vice versa.Val Akkapeddi
No, none of the queues are transactionalShax
Right-click the queue, Properties, Security tab. Assign rights to the Everyone group.Hans Passant
Hans, already assigned the rights to the everyone group, but no useShax
Incorrect - it should be Everyone + Anonymous Logon. Everyone has not meant "everyone" for many years.John Breakwell

1 Answers

0
votes

if you try to write to a remote queue, an outgoing queue is created on your machine locally. check out the permissions on this outgoing queue and see if there are any items in the outgoing queue. maybe the problem is not the remote machine