Fix: DLLRegisterserver failed on Windows 10

Matthew Adams
by Matthew Adams
Windows & Software Expert
0 Comments
Download PDF
Affiliate Disclosure

  • Seeing the dllregisterserver failed error implies that the dll file could not be registered.
  • To start fixing this problem, open Command Prompt as an administrator and edit permissions for the TypeLib registry key.
  • If you want to be sure that you're always ready for any errors, check out our extensive Windows 10 Error Hub.
  • For more easy-to-follow guides, consider bookmarking our useful DLL Errors section.

DLLRegisterserver failed errors can arise on various Windows platforms. They arise when users try to register DLL or OCX files with the regsvr32 command-line utility. These are two examples of DLLRegisterserver failed error messages:

The module <file> was loaded but the call to DLLRegisterServer failed with error code 0x8002801c.
The module <file> was loaded but the call to DLLRegisterServer failed with error code 0x80070005.

Those regsvr32 error messages are very similar, albeit with different codes. So, the fixes for those DLLRegisterserver failed errors are much the same. If you need to fix one of the above, or similar, DLLRegisterserver errors, check out these resolutions.


How to fix DLLRegisterserver failed with error code 0x8002801c on Windows 10

1. Open an elevated Command Prompt

  1. DLLRegisterster failed errors often arise when users aren’t utilizing regsvr32 within an elevated Command Prompt. Press the Windows key + S hotkey.
  2. Next, type Command Prompt in the text box to search for it.
  3. Right-click Command Prompt to select a Run as administrator option for it, which will open an elevated Prompt window.
    Run as administrator option dllregisterserver failed
  4. Try registering the OCX or DLL file within the elevated Command Prompt.

2. Copy the OCX into the SysWow64 folder

    1. If the DLLRegisterserver error arises for an OCX file, try copying that file into the SysWow64 folder. To do so, open File Explorer.
    2. Open this folder in File Explorer: C:/Windows/System32.
    3. Type the OCX file the DLLRegisterserver error arises for in the search box.
    4. Right-click the OCX file found and select Copy.
    5. Then open the Windows > SysWow64 folder.
    6. Right-click an empty space within the SysWow64 folder and select Paste.
    7. Thereafter, open an elevated Command Prompt as outlined for resolution one. Then run the regsvr32 command for the OCX file you pasted into the SysWow64 folder.

3. Edit the registry

  1. Adjusting permissions for the TypeLib registry key might also fix your DLLRegisterserver error. To do so, press the Windows key and R at the same time.
  2. To open the Registry Editor, type regedit in Run and click OK.
  3. Open this registry key: Computer/HKEY_CLASSES_ROOT/TypeLib.
    TypeLib registry key dllregisterserver failed
  4. Right-click TypeLib and select Permissions.
  5. Select your user account on the Security tab if it’s listed.
  6. Click the Full Control option for your account if it’s not selected.
    Permissions for TypeLib window dllregisterserver failed
  7. If your user account isn’t listed, click the Add button. Then enter your user account title.
  8. Make sure Full Control/Allow is selected for the newly added user account.
  9. Select the Apply option.
  10. Click OK to exit the window.

4. Disable third-party antivirus utilities

Antivirus utility's context menu options dllregisterserver failed

Third-party antivirus utilities can also conflict with regsvr32. So, try disabling third-party antivirus software before running a regsvr32 registration command.

To do that, right-click the system tray icon for your antivirus software to open a context menu. You can usually select a disable option of some kind on most antivirus utilities’ context menus. Select to disable the antivirus software for about 30 minutes to an hour if you can.


The above fixes can resolve the DLLRegisterserver 0x8002801c and 0x80070005 errors. Just remember that you always need admin rights to utilize the regsvr32 command-line utility for registering system files.

FAQ: Read more about registry errors on Windows 10

  • How do I fix error 0x80020009?

Check out our detailed fix guide to resolve the error 0x80020009.

  • Was loaded but the entry-point DllRegisterServer was not found?

This error is caused by the fact that the file doesn’t have a DllRegisterServer. To see this for yourself, run the command dumpbin /exports comdlg32.dll.

  • How do I paste a DLL into System32?

You can paste a DLL file into the System32 folder the same way you would any other file. You can right-click and choose Paste, or just press the Ctrl+V keys when the location window is selected.

Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!