HighTechTalks DotNet Forums  

Read Message Queue Error

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss Read Message Queue Error in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
tzhouhlj@gmail.com
 
Posts: n/a

Default 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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.