Windows 7: unable to register DLL - Error Code:0X80004005

71

When I tried to register a COM DLL,

regsvr32 rpcrt4.dll

I get the following error message:

`The module "c:\windows\system 32\"rpcrt4.dll" was loaded but the call to DllRegisterServer failed with error code 0X80070006.

How do I fix this problem? Please help.

windows-7
regsvr32
asked on Stack Overflow Mar 24, 2011 by dotnet-practitioner • edited Jul 14, 2015 by Ajsar Muhammed rafeeque

3 Answers

123

According to this: http://www.vistax64.com/vista-installation-setup/33219-regsvr32-error-0x80004005.html

Run it in a elevated command prompt.

answered on Stack Overflow Mar 24, 2011 by Daniel A. White
36

Open the start menu and type cmd into the search box Hold Ctrl + Shift and press Enter

This runs the Command Prompt in Administrator mode.

Now type regsvr32 MyComobject.dll

answered on Stack Overflow Apr 21, 2012 by Michael Blood
4

Use following command should work on windows 7. don't forget to enclose the dll name with full path in double quotations.

C:\Windows\SysWOW64>regsvr32 "c:\dll.name" 
answered on Stack Overflow Nov 18, 2011 by Sahayaan • edited Nov 6, 2012 by andrewsi

User contributions licensed under CC BY-SA 3.0