Fix DllUnregisterServer Failed with Error Code 0x80040200



RECOMMENDED: Click here to fix Windows errors and optimize system performance

Windows users reported a RegSvr32 “DllUnregisterServer error with error code 0x80040200” when trying to register or unregister a DLL file while installing an application that automatically registers the DLL file.

The detailed RegSvr32 error message looks like this:

Module xxx was loaded, but the call to DllUnregisterServer failed with error code 0x80040200.
You can find more information about this issue online using the error code as your search term.

Cause of the Error

CDO DLLs are used by applications to communicate with databases; B. for reporting and quarantine. Cdosys.dll and cdoex.dll contain commands to access it, but they are slightly different. Programs cannot execute certain commands using the DLL if the registry is incorrect. cdoex.dll is sometimes stored in the registry where cdosys.dll should be located. It is currently unknown why, but there are suspicions that this was due to another program that uses CDO communication (with databases), or that Windows update incorrectly re-saved the records.

Save the file again after installing the program

If you see this error while trying to install the application, most likely it is due to incorrect loading of some dependencies. If so, then to fix the problem, you will most likely need to run the installer with administrator rights, and then manually unregister and register the failed dependency.

  • Open File Explorer and navigate to the installation location causing the error.
  • Right-click it and select “Run as administrator” from the context menu that appears.
  • Follow the instructions on the screen to complete the installation. You don’t mind if you see the same error 0x80040200 – just close the error window and proceed to the next step.
  • Open the Run dialog box by pressing the Windows key + R. Then type “cmd” in the text box and press Ctrl + Shift + Enter to open a command prompt with an extended CMD.
  • In a command prompt terminal, enter the following commands in order, then press Enter after each command to unregister and re-register the OCX dependency:
    • spr32x30.ocx / UNRESIGNED
    • spr32x30.ocx / REGSERVER
  • Restart your computer and see if the problem goes away the next time you start your computer.


January 2021 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

download



Use Administrator Rights to Unregister the DLL File

replace missing DLL files

Step 1. Press Windows Key + R to open the Startup window.

Step 2: Type cmd and press Ctrl + Shift + Enter to open a command prompt with an elevated CMD. Click Yes to grant administrator rights when prompted by User Account Control (UAC).

Step 3: Type the following command and press Enter to manually unregister the DLL file: regsvr32 / u xxx.dll
Note. Replace xxx with the name of the DLL you want to unregister. Example: regsvr32 / u cdo32.dll command.

Step 4: restart your computer.

Run Command Prompt in elevated mode

a. Click Start. Enter cmd into search on startup.

b. Right click cmd.exe and choose if you want to run as administrator.

vs. regsvr32 / u cdo32.dll

re. Check if registration was canceled successfully.



RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance