71
votes

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.

3
Which error was it, 0x80070006 (as mentioned in the question body) or 0x80004005 (as mentioned in the title)? - stakx - no longer contributing

3 Answers

36
votes

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

4
votes

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"