[英]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);
You're performing RPC communication so there are several areas to check, in addition to the one you've already found. 您正在执行RPC通信,因此除了已经发现的区域之外,还需要检查其他几个区域。
https://blogs.msdn.microsoft.com/johnbreakwell/2010/03/24/understanding-how-msmq-security-blocks-rpc-traffic/ https://blogs.msdn.microsoft.com/johnbreakwell/2010/03/24/understanding-how-msmq-security-blocks-rpc-traffic/
https://blogs.msdn.microsoft.com/johnbreakwell/2009/05/17/failing-to-read-from-remote-msmq-queues/ https://blogs.msdn.microsoft.com/johnbreakwell/2009/05/17/failing-to-read-from-remote-msmq-queues/
https://blogs.msdn.microsoft.com/johnbreakwell/2008/07/10/getting-msmq-messages-out-of-windows-server-2008-remotely/ https://blogs.msdn.microsoft.com/johnbreakwell/2008/07/10/getting-msmq-messages-out-of-windows-server-2008-remotely/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.