I run .exe through a windows service that reads a message from Private Queue. The service is all good and stable, but sometimes the service stops (it doesn’t actually stop, but it doesn’t process anything. The status of the service is still “running”, I need to manually restart it).
This does not often appear, but analyzing the memory dump of the .exe file, I found that so many threads are found below the exception.
Exception Object: 0000000001436120 Exception Type: System.Messaging.MessageQueueException Message: An external component has thrown an exception.
System.Messaging.MessageQueueException- External component has thrown an exception
System.Messaging.MessageQueue.ReceiveCurrent(System.TimeSpan, Int32, System.Messaging.Interop.CursorHandle, System.Messaging.MessagePropertyFilter, System.Messaging.MessageQueueTransaction, System.Messaging.MessageQueueTransactionType)
System.Messaging.MessageQueue.Peek(System.TimeSpan)
Any idea why the service encounters this exception? thanks in advance