Read Message Queue Error -
08-24-2007
, 09:46 AM
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.MQRec eiveMessage(MessageQueueHandle
handle, UInt32 timeout, Int32 action, MQPROPS properties,
NativeOverlapped* overlapped, ReceiveCallback receiveCallback,
CursorHandle cursorHandle, IntPtr transaction)
at System.Messaging.MessageQueue.StaleSafeReceiveMess age(UInt32
timeout, Int32 action, MQPROPS properties, NativeOverlapped*
overlapped, ReceiveCallback receiveCallback, CursorHandle
cursorHandle, IntPtr transaction)
at System.Messaging.MessageQueue.ReceiveCurrent(TimeS pan timeout,
Int32 action, CursorHandle cursor, MessagePropertyFilter filter,
MessageQueueTransaction internalTransaction,
MessageQueueTransactionType transactionType)
at System.Messaging.MessageQueue.Receive(TimeSpan timeout)
at
HouseValuesInc.Messaging.EmailLogProcessor.Windows Service.ServiceMain.ProcessStart()
in C:\Project\Mercury\Components
\HouseValuesInc.Messaging.EmailLogProcessor.Window sService
\ServiceMain.cs:line 170
System.Threading.ThreadAbortException: Thread was being aborted.
Any ideas why this is happening?
Thanks
Terry |