I have private queue created with Anonymous, Everyone, NetworkService full control on a server which is in workgroup mode. I can send a message using .net stub without any issue where as it throws exception while receiving the message. I tried to read the message using
Message.Receive()
and Message.ReceiveByID()
both throws exception. I tried to add the registry key as told in below link but it did not work
https://blogs.msdn.microsoft.com/johnbreakwell/2007/01/15/msmq-3-0-too-secure-for-you/
MessageQueue messageQueue = new MessageQueue(queueFormatPath);
var message = messageQueue.Receive();
MyMessageQueue.ReceiveById(e.Message.Id);