You receive a "MQSec.dll could not be found" error message after you install the Message Queuing component in Windows 2000 (839485)



The information in this article applies to:

  • Microsoft Message Queuing 2.0

SYMPTOMS

If you restart the Microsoft Message Queuing (also known as MSMQ) component or you restart the computer that is running Message Queuing, Message Queuing may not start successfully. You may receive the following error message:
The dynamic link library MQSec.dll could not be found
System path
Note The System path is a placeholder for the exact system path (or the value of the PATH environment variable on your computer).

This problem only occurs if you remove the Message Queuing component, and then you reinstall the Message Queuing component without first restarting the computer that is running Message Queuing.

CAUSE

This problem occurs because when you remove the Message Queuing component, a value named PendingFileRenameOperations is created on the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SessionManager registry key. This value is populated with a list of Message Queuing files that were loaded in the memory and that cannot be deleted. This value is processed when the computer is restarted, and the Message Queuing files are removed. The previous value is not removed from the registry if you reinstall the Message Queuing component before you restart the computer.

Note When you install the Message Queuing component, you do not have to restart the computer. The Message Queuing component works correctly until you restart the computer.

RESOLUTION

To resolve this error, remove the Message Queuing component, restart the computer, and then reinstall the Message Queuing component.

Note Make sure that all messages have been processed and that the Message Queuing configuration has been backed up before you install or reinstall the Message Queuing component.

REFERENCES

For more information, visit the following MSDN Web sites: For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

303289 MSMQ: "MSMQ Service Not Available" error after you apply Windows 2000 Service Pack 2

254284 FIX: MSMQ uninstall may not remove all MSMQ objects from the Active Directory


Modification Type:MinorLast Reviewed:10/7/2004
Keywords:kbtshoot kberrmsg kbprb kbdomain kbService kbRegistry kbDLL KB839485 kbAudDeveloper