tags:

views:

1243

answers:

2

I'm very new to MSMQ. We have a critical system using MSMQ and it is not able to start due to insufficient resources. It appears that MSMQ is at capacity. I am trying to purge messages (or even delete unneccessary queues), but I receive the following error when purging:

Cannot delete all messages from queue. Error: Access to Message Queuing system is denied.

What are my options? Is there a way to delete queues when the services is off?

A: 

Get hold of a copy of Queue Explorer - it's a commercial app but the trial is fully functional and it's worth it's weight in gold when debugging MSMQs http://www.cogin.com/mq/

If you don't have permissions though, then you don't have permissions! Are you a box admin? If you go to computermanagement and right click on one of your privete queues and select properties can you access the security tab and edit/see the permissions there?

Andrew M
I am using Queue Explorer. I don't believe that it is the account rights, I have been able to add/delete/purge queues in the past. This seems to be connected to the fact that the queues are too full.
bennage
+2  A: 

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.

Chris Patterson
Yes, after raising the Quota for the service I was able to access the queue. Though there seems to have been a secondary problem where the account I was using lost rights as well, but the service trying to read the queue had rights and could do so after raising the quota. This was on MSMQ 2.0 btw.
bennage