I am new to MSMQ and working on the existing code.
Here is my code.
bool queueReadStatus = true;
while (queueReadStatus)
{
try
{
Message message = messageQueue.Receive(new TimeSpan(0, 0, 1));
msgLst.Add(message);
}
catch (MessageQueueException exception)
{
var ex = exception;
queueReadStatus = false;
}
}
I got the below exception. Can someone help me trying to understand what exactly is the issue ?