简体   繁体   English

尝试从WorkGroup中的服务器读取时,MSMQ读取消息不起作用

[英]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. 我在工作组模式的服务器上使用匿名,所有人,NetworkService完全控制创建了专用队列。 I can send a message using .net stub without any issue where as it throws exception while receiving the message. 我可以使用.net存根发送消息,而不会在收到消息时引发异常的任何问题。 I tried to read the message using 我尝试使用阅读消息

Message.Receive() and Message.ReceiveByID() both throws exception. Message.Receive()Message.ReceiveByID()都引发异常。 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/ 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: 例外: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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