Error 0x8002801c occurs when there is an issue with accessing the Object Linking and Embedding (OLE) registry. Insufficient system permissions cause this error code when the OLE Control Extension (OCX) file save cannot be completed. This is known to be a common occurrence when using regsvr32 from the command line in Windows 7.
This error code is common when trying to save the OCX file to C: \ Windows \ system 32. In most cases, the DLLRegisterServer call fails due to a resolution issue and has nothing to do with the actual OCX component you want to register.
Fortunately, error 0x8002801c can be avoided by copying the OCX file to C: \ Windows \ SysWOW64 and repeating the process as an administrator. If you are currently experiencing this issue, follow the step-by-step instructions below to resolve error 0x8002801c and register your OCX file successfully.
Fix error code 0x8002801C after failing to save OCX file
- Open File Explorer and go to the Windows section. Then go to Windows> System 32 and use the search bar to find the OCX file.
- Copy the OCX file to the clipboard. Then go back to the Windows folder and open the sysWOW64 folder. Then just paste the OCX file.
- Open the start menu (bottom left corner) and type “cmd”. Then right click on Command Prompt and select “Run as administrator”.
- At the command prompt, enter the regsvr32 + OCX component. In our case, the last command will be regsvr32 OCX. After pressing Enter, you will be asked if the file was saved successfully.
That’s all. That’s all. You can use these four steps to give any OCX file causing error code 0x8002801 the appropriate permissions. In most cases, it will register the ActiveX component and fix the problem.
Use system restore
- Restart your computer and log in as an administrator.
- Right-click the Start button and select System.
- In the left pane, click System Protection.
- Click System Restore to open the System Restore window.
- Click Next.
- Select the last system restore point and click Next.
- Click Finish.
Run System File Checker
The System File Checker (SFC) tool is widely used in Windows to check for missing or damaged system files. How to start SFC:
- Click on the start menu.
- Enter “cmd”. When Command Prompt appears in the menu above, right-click it and select “Run as administrator”.
- At the command prompt, enter “sfc / scannow” and press Enter.
- Wait for the scan to complete.
Set library permissions under your username in Registry Editor.
- Click Start. Type regedit in the search box and hit Enter.
- When prompted to confirm the user account, click Yes.
- Go to Registry Editor (regedit) and HKEY_CLASSES_ROOT \ TypeLib key
- Right click TypeLib, select Permissions and go to the Security tab.
- Make sure your username is in the user list. If so, make sure you have full control / remove restricted users from the list.
- Otherwise, click Add and enter a username. After adding, make sure the user has full control.
- Apply the changes and close the registry editor.
- Reboot your computer
Note: Please make a log backup before changing the resolution.