Windows users reported the RegSvr32 error “DllUnregisterServer failed with error code 0x80040200” prompt when trying to register or unregister a DLL file while installing an application that registers a DLL file automatically.
The detail RegSvr32 error message as below:
The module xxx was loaded but the call to DllUnregisterServer failed with error code 0x80040200.
for more information about this problem, search online using the error code as a search term.
[Solved] How to Fix RegSvr32 Error “DllUnregisterServer failed with error code 0x80040200”
模块“XXX.ocx” 已加载,但对DLLRegisterServer调用失败,错误代码为0x80040200。
[Solved] How to Fix RegSvr32 Error “DllUnregisterServer failed with error code 0x80040200”
Table of Contents
Content Summary
Solution 1: Unregister the DLL file with Admin Access
Solution 2: Re-register the File after Program Installation
Solution 3: Run the OCX (OLE Control Extension) File from the System32 folder
Solution 1: Unregister the DLL file with Admin Access
Step 1: Press Windows key + R to open a Run box.
Step 2: Type cmd
and press Ctrl + Shift + Enter to open up an elevated CMD prompt. Click Yes to grant administrative privileges when the UAC (User Account Control) prompted.
Step 3: Type the following command and press Enter to unregister the .DLL file manually: regsvr32 /u xxx.dll
Note: Replace the xxx with the file name of the DLL file that you are attempting to unregister. For example, regsvr32 /u cdo32.dll
command.
Step 4: Restart the PC.
Solution 2: Re-register the File after Program Installation
Step 1: Open File Explorer and navigate to the location of the installer that causing this error.
Step 2: Right-click on the installer and choose Run as Administrator from the context menu.
Step 3: Follow the on-screen instructions to complete the installation. Click on the OK button when the same 0x80040200 error prompt and move down to the next step.
Step 4: Press Windows key + R to open a Run box.
Step 5: Type cmd
and press Ctrl + Shift + Enter to open up an elevated CMD prompt. Click Yes to grant administrative privileges when the UAC (User Account Control) prompted.
Step 6: Type the following commands and press Enter after each command to unregister and then re-register the OCX dependency:
spr32x30.ocx /UNREGISTER
spr32x30.ocx /REGSERVER
Step 7: Restart your PC.
Solution 3: Run the OCX (OLE Control Extension) File from the System32 folder
Step 1: Open File Explorer, navigate to the location of the .OCX file.
Step 2: Right-click on the .OCX file and choose Cut from the context menu.
Step 3: Navigate to C:\Windows\System32
and paste the .OCX file inside.
Step 4: Repeat the installation again.