- 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
- DLLRegisterster failed errors often arise when users aren’t utilizing regsvr32 within an elevated Command Prompt. Press the Windows key + S hotkey.
- Next, type Command Prompt in the text box to search for it.
- Right-click Command Prompt to select a Run as administrator option for it, which will open an elevated Prompt window.
- Try registering the OCX or DLL file within the elevated Command Prompt.
2. Copy the OCX into the SysWow64 folder
- If the DLLRegisterserver error arises for an OCX file, try copying that file into the SysWow64 folder. To do so, open File Explorer.
- Open this folder in File Explorer:
- Type the OCX file the DLLRegisterserver error arises for in the search box.
- Right-click the OCX file found and select Copy.
- Then open the Windows > SysWow64 folder.
- Right-click an empty space within the SysWow64 folder and select Paste.
- 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
- 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.
- To open the Registry Editor, type regedit in Run and click OK.
- Open this registry key:
- Right-click TypeLib and select Permissions.
- Select your user account on the Security tab if it’s listed.
- Click the Full Control option for your account if it’s not selected.
- If your user account isn’t listed, click the Add button. Then enter your user account title.
- Make sure Full Control/Allow is selected for the newly added user account.
- Select the Apply option.
- Click OK to exit the window.
4. Disable third-party antivirus utilities
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.