如何清除MSMQ系统队列日志programaticaly一个工作组安装?队列、工作组、系统、日志

由网友(缺爱不会死.)分享简介:我试试这个:MessageQueue MQ =新MessageQueue(\杂志$);mq.Purge(); I try this :MessageQueue mq = new MessageQueue(".\Journal$");mq.Purge();它的工作好于XP。但是,在Windows 2003服...

我试试这个: 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:computernameSYSTEM$;JOURNAL");
mq.Purge();

我觉得系统队列无法​​通过路径访问。你必须使用的格式名称。

I think that system queue can't be access by path. You have to use format name.

看约尔嫩的在页面底部的评论。

阅读全文

相关推荐

最新文章