连接尝试失败msmq

时间:2014-02-07 05:51:06

标签: c# .net sockets msmq windows-applications

需要您的帮助以解决以下问题。

我基本上有两个应用程序,一个是Web,另一个是Windows应用程序。 Web应用程序由用户使用。在用户向客户提供任何服务后,其输入将在表格中进行。

我在MSMQ(InboundQ和OutBoundQ)中配置了两个私有队列。

我的另一个应用程序即。 Windows应用程序配置了侦听器,发送器和代理(向外和向内)。此应用程序始终运行[即听众,发件人,代理人总是在...... 当数据条目在表中生成时,'向外代理'监视它(表)并将消息发送到OutBoundQ。

'发送者'持续监控OutBoundQ。一旦它在Outbound Queue中找到该消息,它就会将其发送到我的应用程序。

逆流也存在,工作正常。

消息不断传入。两个队列,发件人,代理,侦听器配置正确。当我启动它它工作正常。然而,一段时间后它停止了。因此,不处理消息。我收到如下错误:

************** Exception Text **************
System.ApplicationException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 size, SocketFlags socketFlags)
   at IC.BusinessComponent.ICSender.SendMessage(String OutBoundMessage)
   --- End of inner exception stack trace ---
   at IC.BusinessComponent.ICSender.SendMessage(String OutBoundMessage)
   at IC.Interface.FrmISHSender.ReceiveMessage()
   at IC.Interface.FrmISHSender.RecvMsgTicker_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 

然而,当我们重新启动它时它开始正常工作然后再次停止。

此应用程序已正常运行超过6 - 8年。从来没有这样的问题。此外,过去一年没有代码更改。

他们最近将应用程序移至另一台服务器。 可能是什么问题?我完全没有意识到这种情况。

客户端正面临着持续堆积的消息,而正在处理的消息也很慢。

请帮忙。

0 个答案:

没有答案
相关问题