简体   繁体   中英

MSMQ Read message not working when trying to read from a server which is in WorkGroup

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);

exception: 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM