I am not able to connect to private MSMQ on remote machine.
I have tried many ways like..
MessageQueue rmQ = new MessageQueue("FormatName:Direct=OS:<hostname>\\private$\\<queuename>");
MessageQueue rmQ = new MessageQueue("FormatName:Direct=TCP:<hostIp>\\private$\\<queuename>");
Also set allowed full control on the queue for everyone and anonynmouse users.
Disable firewall.
Allowed Nonauthenticated Rpc on both machines.
But not luck. I am getting error Access to Message Queuing system is denied.
I have also observed that assigned "rmQ" object has MessageQueueException
for all of the properties.
Any help on connecting remote MSMQ will be appreciated.