Friday, December 4, 2015

MSMQ cannot delete or purge a queue

MSMQ cannot delete or purge a queue

1. Stop following services

Message Queuing Triggers,
Net.Msmq Listener Adapter
Message Queuing.

2. Go to C:\Windows\System32\msmq\storage\lqs

3. Now open file in notepad or notepad++ and

see the name of queue at QueueName=\private$\YourQueueName

3. Before delete file backup the file. Now delete that file.

4. Don't delete other file which does not have your queue name.

5. Do these things as your own risk.

6. Now start following services

Message Queuing Triggers,
Net.Msmq Listener Adapter
Message Queuing.

===

If you open Computer Management on the machine, expand the Services and Applications node (Features on 2008) and right-click on the Message Queuing service.

Right click on the Properties option and open it up to the General tab.

You can specify storage limits for messages -- you may have ran into the upper limit for messages storage. If you temporarily increase this value, it may allow you back into the messaging system so you can purge out those queues and restore operation.

Failing that, if you can deal with the loss of the messages (which if you are trying to purge I presume is okay), maybe delete the queue and recreate it.

Reference:

http://stackoverflow.com/questions/1561063/msmq-cannot-delete-or-purge-a-queue

No comments: