locked
System.Messaging.MessageEnumerator.get_Current() Object reference not set to an instance of an object RRS feed

  • Question

  • Hello All,

    I am getting below error during Deque operation from message queue. Could  any one please help. What is the reason and workaround for this? Below is the  stack trace

    NullReferenceException: Object reference not set to an instance of an object.    
    at System.Messaging.Interop.MessagePropertyVariants.Unlock()    
    at System.Messaging.Message.Unlock()    
    at System.Messaging.MessageQueue.ReceiveCurrent(TimeSpan timeout, Int32 action, CursorHandle cursor, MessagePropertyFilter filter, MessageQueueTransaction internalTransaction, MessageQueueTransactionType transactionType)    
    at System.Messaging.MessageEnumerator.get_Current()    

    Thanks a lot

    Regards
    Raja Gupta

    Friday, August 29, 2014 9:21 AM