LKBEN10704: RegSvr32 delivers an error: LoadLibrary("name of a com object") failed - The specified module could not be found


Symptom

You need to register an ActiveX or a com Object and you get an error message about a module which cannot be found

Cause

This can be caused when regsvr32 has to register a dll or exe component and some of its dependencies cannot be resolved.

Solution

Did you move the object in the filesystem or from another PC? First you should check if the COM object is right. Check that the name supplied to regsvr32 is correctly written. Check both the name and place in the filesystem. You can check the dependencies (dll, exe, com, ...) with programs like dependency walker. You might be able to solve this problem by changing your path so all the dependencies can be resolved. If you are moving it from one PC to another, you might find the dependent files on the old PC and need to copy these too.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.