Read Message Queue Error
Hi,
I have a window service reading from a message queue and gave me a
repeated error for the first message it read. In other word, everytime
I start the window service which reading from the queue. It throw
exception on reading the first message from the queue. There error is
looking like this:
System.Threading.ThreadAbortException: Thread was being aborted.
at
System.Messaging.Interop.UnsafeNativeMethods.MQReceiveMessage(MessageQueueHandle
handle, UInt32 timeout, Int32 action, MQPROPS properties,
NativeOverlapped* overlapped, ReceiveCallback receiveCallback,
CursorHandle cursorHandle, IntPtr transaction)
at System.Messaging.MessageQueue.StaleSafeReceiveMessage(UInt32
timeout, Int32 action, MQPROPS properties, NativeOverlapped*
overlapped, ReceiveCallback receiveCallback, CursorHandle
cursorHandle, IntPtr transaction)
at System.Messaging.MessageQueue.ReceiveCurrent(TimeSpan timeout,
Int32 action, CursorHandle cursor, MessagePropertyFilter filter,
MessageQueueTransaction internalTransaction,
MessageQueueTransactionType transactionType)
at System.Messaging.MessageQueue.Receive(TimeSpan timeout)
at
HouseValuesInc.Messaging.EmailLogProcessor.WindowsService.ServiceMain.ProcessStart()
in C:\Project\Mercury\Components
\HouseValuesInc.Messaging.EmailLogProcessor.WindowsService
\ServiceMain.cs:line 170
System.Threading.ThreadAbortException: Thread was being aborted.
Any ideas why this is happening?
Thanks
Terry
date: Fri, 24 Aug 2007 13:46:09 -0000
author: unknown