MSMQ消息都停留在传出队列 [英] MSMQ Messages Are Stuck In The Outgoing Queue
问题描述
虽然我的问题看起来有些相似的SO已经发现,这些帖子并没有帮助我,所以这里是:
Although my question looks similar to some already found on SO, those post did not help me, so here it is:
由于:
- 在两台机器在同一网段(自然在同一域中,实际上是在同一张桌子)
- 在这两款机器都是Windows 7工作站
- 在两台机器有禁用防火墙
- 在这两款机器看到对方(ping成功)
- 有一个民办非事务性消息队列中的测试的其中之一。
- 在发送方机具有
HKEY_LOCAL_MACHINE \ SOFTWARE \微软\ MSMQ \ SimpleClient的\ @BinaryEnabled ='是'
- 在队列所有者从另一台计算机 发送消息
- 在该消息被卡在传出队列,从来没有达到目标。
- 当在同一台机器(本地IE)发送的邮件到达确定。
- Two machines on the same segment (naturally in the same domain, actually on the same desk)
- Both machines are Windows 7 workstations
- Both machines have disabled firewall
- Both machines see each other (ping works)
- There is a private non transactional message queue test on one of them.
- The sender machine has
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\SimpleClient\@BinaryEnabled = 'Yes'
- The queue owner sends a message from another machine
- The message is stuck on the outgoing queue, never reaching the target.
- When sent from the same machine (i.e. locally) the message arrives OK.
该消息是使用下面的code发送的:
The message is sent using the following code:
var q = new MessageQueue(@"FormatName:Direct=OS:il-mark-lap\private$\test");
q.Send(string.Format("Test message sent at {0} from {1}", DateTime.Now, Environment.MachineName));
其中 IL-标记圈是本机与队列的地址。
Where il-mark-lap is the address of the machine with the queue.
究竟做我必须做,使事情的工作?
What on earth do I have to do to make the thing work?
多谢了。
推荐答案
我想我找到了答案,这个问题,我有什么似乎是同样的问题,我的只是卡住了不能将消息发送到客户端后, 10分钟虽然。看看这个知识库文章,它可以帮助你。此外,在我的情况下,它不得不无关,与重新启动,所以不要让你扔了,我没有表现出症状了netstat和消息最初将通过在客户端第一次启动。
I think I found the answer to this issue, I was having what appears to be the same problem, mine only got stuck after not sending messages to the client for 10 minutes though. Take a look at this KB article, it may help you. Also, in my case it had nothing to do with restarting, so don't let that throw you off, I did exhibit the symptoms in the netstat and messages would initially go through when the client was first started up.
http://support.microsoft.com/kb/2554746
这篇关于MSMQ消息都停留在传出队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!