When you try to manually register a control from the command line using the RegSvr32.exe utility, an error message appears indicating that the ActiveX control was loaded but the DllRegisterServer call failed with error code 0x80040200.

This error can occur on Windows systems with user account control enabled. Since the registry requires access to a restricted area of the registry, it should be used with elevated privileges via the administrative command line. To do this, right-click the command line icon and select “Run as administrator” or in Widows 8.1 or Windows 10, right-click the Windows icon in the system status bar and select “Command Prompt (administrator)”.

If you are using a 64-bit version of Windows, you should also make sure that you have registered the correct version of the control. In 32-bit versions of Windows ActiveX SocketTools are installed in C: \ Windows \ System32. In 64-bit Windows 32-bit ActiveX controls are installed in C: \ Windows \ Syswow64, and 64-bit ActiveX controls are installed in C: \ Windows \ System32. To register a 32-bit control in a 64-bit Windows system, the command must look like this:

% windir% \ syswow64 \ regsvr32% windir% \ syswow64 \ control.ocx

Where control is the file name of the ActiveX control you want to register. When manually copying a control from one system to another, you should also note that saving the control is different from granting a license. To deploy an application that uses the SocketTools ActiveX control, it must be compiled on a system with a SocketTools development license. The saved control will always generate a runtime license error if the application is not properly licensed for distribution.

Run the command line in elevated privilege mode

ERR_NAME_NOT_RESOLVED - Use Command Prompt - Step 1

Have you tried running the command line in elevated privileges mode (administrator) to unregister the DLL file?

If not, run the command line in administrator mode and see if you can successfully unregister the file.

Update your system

ERR_NAME_NOT_RESOLVED - Update your drivers

This is the best and easiest way to solve the problem. If you have a technical problem, the first thing you should do is to update your system. This step can solve minor or major problems.

Rebooting your system will update your network, which will automatically solve most problems by redirecting the configuration. If you have used this method before, you can use the following method to fix this error.

Run the OCX (OLE Control Extension) file from the System32 folder

Step 1: Open explorer and navigate to the folder with the .OCX file.

Step 2: Right-click the .OCX file and choose Cut from the context menu.

Step 3: Navigate to the C: \ Windows \ System32 and paste the .OCX file.

Step 4: Repeat the installation.

Save the file again after installing the program

What is the purpose of Windows Update

Step 1: Open Explorer and navigate to the installation location that caused this error.

Step 2: Right-click the installer and select “Run as administrator” from the context menu.

Step 3. Follow the instructions on the screen to complete the installation. If you see the same 0x80040200 error message, click OK and go to the next step.

Step 4: Press the Windows + R keys to open the startup window.

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

Step 6: Enter the following commands and press Enter after each command to unregister and re-register the OCX dependency
spr32x30.ocx / REGISTER

Step 7: Restart your computer.