Knowledge Base : Glossary : Suggest a Question
Search The Knowledge Base
Browse The Knowledge Base
Knowledge Base : General : Windows

The module xxx.dll or xxx.ocx was loaded but the call to DllRegisterServer failed with error code

Error :
The module xxx.dll or xxx.ocx was loaded but the call to DllRegisterServer failed with error code

Reason:

With the User Account Control (UAC) enabled by default in Windows Vista or Windows 7.

Objective:

Need to use an elevated Command Prompt whenever you need to do some administrative tasks from Command Prompt.
For example, running regsvr32.exe command to register or unregister an DLL/ActiveX, launching a batch file or script requiring administrative privileges, and other tasks require you open an elevated Command Prompt. Elevated Command Prompt runs under administrative privileges.
Reference : http://kbase.gofrugal.com/index.php?a=642

Solution:
step1: Type the cmd in the Start Search box
step2: when cmd.exe appears at the top of the Start Menu
step3: Right click on it, select "Run as Administrator"
step4: then execute the regsvr command or add the C: after the regsvr32


Example: c:Windowssystem32> regsvr32 C:windowssystem32COMCTL32.OCX

You should see the following message:
DllRegisterServer in C:WINDOWSSystem32comdlg32.ocx succeeded.

Alternate Solution:
After done setup and restart the machine.

Windows Platform tested:
Windows Vista, Windows 7


Related Articles
There are no related articles


Viewer Comments Add Comment
No viewers have posted comments

Powered By AutoKB