我正在尝试在 Windows 10 上设置 MSMQ 以进行一些测试。
- 我从控制面板安装 MSMQ - Windows 功能。
- 我手动创建了一个队列 - 称之为“private$\local”
现在我使用 Visual Studio 2019 - Community Edition,创建一个控制台应用程序来执行此操作:
q = new MessageQueue("private$\\local");
Console.WriteLine("Queue obtained.");
q.Send(new SomeObject());
调用 send 会产生如下异常:
MessageQueueException: BaseType = MSMQ.Messaging.MessageQueueException; BaseMsg = A workgroup installation computer does not support the operation.; ErrCode = -2147467259
BaseMsg 来自 MessageQueueException 的 GetBaseException。
我的计算机不在域中,所以它在工作组中。我知道 MSMQ 使用 LDAP 来确保安全,我的笔记本电脑上没有安装它。
问题: 有没有办法在 WIndows 10 上配置 MSMQ,使其不需要 LDAP,或者绕过我在这里遇到的问题?我搜索了注册表配置提示,并没有发现有关 LqsUpdatedSD 和周围键的信息。
谢谢你。