Microsoft KB Archive/839485

= You receive a &quot;MQSec.dll could not be found&quot; error message after you install the Message Queuing component in Windows 2000 =

Article ID: 839485

Article Last Modified on 3/20/2007

-

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

Note The  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.

