如何清除MSMQ系统队列日志programaticaly一个工作组安装? [英] How to purge MSMQ system queue journal programaticaly on a workgroup installation?
本文介绍了如何清除MSMQ系统队列日志programaticaly一个工作组安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试试这个: MessageQueue MQ =新MessageQueue(\杂志$); mq.Purge();
I try this : MessageQueue mq = new MessageQueue(".\Journal$"); mq.Purge();
它的工作好于XP。 但是,在Windows 2003服务器上,我一直有这样的错误: 一个工作组安装的计算机不支持该操作。
It work good on XP. But, on windows 2003 server, I always have this error : "A workgroup installation computer does not support the operation."
推荐答案
请尝试使用格式名像这样:
Try using format name like so:
MessageQueue mq = new MessageQueue("DIRECT=OS:computername\SYSTEM$;JOURNAL");
mq.Purge();
我觉得系统队列无法通过路径访问。你必须使用的格式名称。
I think that system queue can't be access by path. You have to use format name.
这篇关于如何清除MSMQ系统队列日志programaticaly一个工作组安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文