Class Not Registered Error in Windows 11 and 10: What It Means and How to Fix It Safely


A class not registered error means a program asked Windows for a component, and Windows could not find a working registration for it. You may see it when you open a photo, when a Settings page will not load, or when an installer stops partway through. This guide explains what the message means, then covers the safest fixes first.
Last reviewed: November 24, 2026. This guide on the class not registered error compares each step with Microsoft documentation; none of the steps were run on a real PC, and the top picture is an illustration.
Quick answer
Quick answer
- The class not registered error means a program asked Windows for a component, and Windows could not find a working registration for it.
- Restart first, then check Windows Update. Many one-off cases clear up this way.
- Repair or reset the program that shows the error, and reinstall it if that does not help.
- Run DISM first, then SFC, each in its own Command Prompt window, after a restore point is ready.
- Test a new local account to tell a profile problem from a system problem. Use System Restore as a safety net, and never edit the registry or turn off Windows Security to get past this error.
In this guide
- What the class not registered error means
- Where the error shows up and what to try first
- Before you start: a safety check
- Start with the quick checks
- Repair or reset the program that shows the error
- Reinstall the program
- Check the Visual C++ runtime
- Repair Windows system files with DISM, then SFC
- Built-in apps that still fail
- Test with a new local account
- Use System Restore as a safety net
- When regsvr32 is appropriate
- Last resorts: repair install and reset
- How we checked this guide
- A note for Windows 10 users
- Frequently asked questions
- Sources
What the class not registered error means
Many Windows programs ask the system for a component by its class ID. This is part of the Component Object Model, usually called COM. Windows keeps a registration that says which file provides the component. When a program asks for it, Windows looks up that registration and loads the file. The registry layout behind those entries is explained in registry hives, keys and values explained. Most of these class registrations are stored in the HKEY_CLASSES_ROOT part of the registry.
Why the message appears
If the registration is missing, points to a file that no longer exists, or was damaged by an interrupted update or a bad uninstall, Windows cannot hand the component over. The program then reports "Class not registered".
Some reports pair this message with the code 0x80040154, which is often listed as REGDB_E_CLASSNOTREG. We did not find an official Microsoft page for that code, so treat the name as general guidance. Use the code to search for help, but follow the steps that match the exact message you see. Windows event logs can show a related entry too, and our guide on DCOM event ID 10016 explains what it means and when you can ignore it.
In plain words: a program asked Windows for a component, and the registration for that component is missing or broken.
The program that shows the message is often not the cause. The fault can sit in a Windows system file, a Microsoft Store app package, a leftover from another program, or your user profile. That is why the fixes below start with simple checks and move toward the system as a whole.
General advice: this error does not, on its own, mean the hard drive is failing. Most cases are software problems with a known order of fixes.
Where the error shows up and what to try first
Match what you see to the first step in this table. It is a guide, not a diagnosis, so move on to the next row if the first step does not help.
| Where you see it | What it often points to | First step to try |
|---|---|---|
| File Explorer, Start menu or taskbar shows the error | A Windows shell component or system files | Restart, then run DISM and SFC |
| Photos, Calculator or another built-in app will not open | A Microsoft Store app registration | Repair or reset the app, then run DISM and SFC if it still fails |
| A Settings page will not open | The Settings app package or system files | Restart, check Windows Update, then DISM and SFC |
| An installer or desktop program shows it | That program's own components or a missing runtime | Repair or reinstall the program, then check the runtime |
| Only one Windows account shows it | A damaged user profile | Test with a new local account |
| It started right after a Windows update | An interrupted or incomplete update | Check Windows Update, then run SFC |
If you are not sure which row fits, use this short check.
A quick way to sort your case
- Does only one program show the error?
- Yes: start with repairing that program in the section below.
- No: the cause is more likely in Windows itself. Go to the system file repair section.
- Does the error also happen in a second Windows account?
- Yes: the problem is system-wide. Repair system files first.
- No: the problem is likely in the user profile. Test with a new account after the quick checks.
Before you start: a safety check
Before you start
Save your open work and close programs. Some repairs restart the PC.
Create a restore point before you change anything. General advice: press the Windows key, type Create a restore point, open it, select the System Protection tab, select Create, give it a name, and wait for it to finish.
Do not edit the registry, change permissions on registry keys, or turn off Windows Security to make this error go away. None of the steps here need it, and those changes can cause much more damage. If a file from the internet asks you to run a .reg file, read how to check a .reg file before you run it first.
Write down the exact message, the program name, and when the error started. If it began right after an install or an update, that detail often points to the cause.
Start with the quick checks
Step 1: Restart the PC
- Select Start, then Power, then Restart.
- Sign in again and repeat the action that caused the error.
You should see: the PC shuts down completely, starts again, and returns to the desktop. The action either works or shows the error again.
If this fails: the error came back after a clean restart, so it is not a one-off glitch. Go to Step 2.
Step 2: Check for Windows updates
- Select Start, then Settings, then Windows Update.
- Select Check for updates. Install anything listed, then restart when asked.
You should see: updates download and install, and the PC restarts. After it returns, test the action again.
If this fails: updates may be stuck or failing. The steps in how to fix Windows Update that is stuck or failing cover that case. For background on installing updates, see Microsoft's guide to installing Windows updates. If the error started after you installed a new program, a clean boot can show whether a startup program is involved. See how to do a clean boot in Windows 11 to find a software conflict, and Microsoft's page on performing a clean boot in Windows.
Repair or reset the program that shows the error
If only one app shows the error, start here. Not every program offers repair or reset. For background, see Microsoft's guide to repairing apps and programs in Windows. General guidance: menu names can differ.
- Select Start, then Settings, then Apps, then Installed apps.
- Find the app in the list. Select the More icon (three dots) next to it.
- Select Advanced options. Some apps do not have this option.
- Select Repair, if it is available.
You should see: a short progress screen and then a message that the repair finished. Open the app again and test it.
If this fails: go back to the same page and select Reset. Then test the app again.
Reset, and what it can remove
Warning
Reset can remove the app's saved settings and sign-in details. Write down any login information and export any settings you need before you select Reset.
If the app is a Windows system component rather than a normal program, the Settings page may not offer repair at all. In that case, the system file and built-in app sections below are the right place to go.
General advice for Windows 10: the names of the pages can differ. The path is usually Settings, then Apps, then Apps & features. Check the same options there.
Reinstall the program
If repair and reset do not help, a clean reinstall replaces the program's files and its registrations. Save your work and any settings you need first.
- Select Start, then Settings, then Apps, then Installed apps.
- Select More next to the program, then select Uninstall. Follow the on-screen steps.
- Restart the PC.
- Download the installer from the program's official website and run it. Install the latest version the maker offers.
You should see: the installer completes, the program opens, and the action that failed now works.
If this fails: an uninstall may be blocked. Our guide on why a Windows 11 app will not uninstall covers that case. If the reinstall still shows the error, contact the program's maker with the exact message and your Windows version. They may know a fix specific to their software.
Check the Visual C++ runtime
Many programs need Microsoft Visual C++ runtime libraries. A missing or damaged runtime can cause errors that look similar to this one. Treat this as a check, not a confirmed cause of this specific error. The bit version matters here, and WOW6432Node and 32-bit registry view explains how 32-bit and 64-bit registrations are kept apart.
Microsoft publishes the latest supported Visual C++ Redistributable downloads on its Microsoft Learn page for the latest supported Redistributable. General guidance: if the program's maker gives its own instructions for the runtime, follow those first.
Install the runtime
- Select Start, then Settings, then Apps, then Installed apps. Search for "Visual C++" to see which versions are installed.
- If the maker names a runtime version, check whether it is listed.
- If the maker asks for the latest runtime, open the Microsoft Learn page above and install the package that matches your Windows bit version (x64 for most PCs).
You should see: the installer finishes and the new version appears in the installed apps list. Restart the PC and test the program.
If this fails: do not download single DLL files from websites to fill the gap. Those files are a common source of new problems. If the error names a specific runtime file, see the related guides on missing MSVCP140 or VCRUNTIME140 files in Windows 11 and missing VCRUNTIME140_1.dll.
Repair Windows system files with DISM, then SFC
When the error appears in several programs, the Windows system files may be damaged. Microsoft recommends running DISM before System File Checker (SFC). DISM repairs the Windows image that SFC draws from. Run each command in its own Command Prompt window, and do not close a window while its scan is still running.
Before you start
These commands change system files. Create a restore point first, as described in the safety check above, and save your work.
Open Command Prompt as administrator
- Select Start, then type cmd.
- Right-click Command Prompt in the results and select Run as administrator.
- If asked, select Yes or enter an administrator password.
You should see: a Command Prompt window whose title shows that it is running as administrator.
If this fails: your account is not an administrator. Sign in with an administrator account, or ask the PC's owner to do this part.
Step A: Run DISM first
DISM.exe /Online /Cleanup-Image /RestoreHealth
Press Enter. This can take a while and may pause at certain percentages.
You should see: a progress indicator, then a final message that the operation completed. The exact wording can change between Windows versions.
If this fails: a message about source files means DISM could not get the files it needs. General guidance: DISM normally uses Windows Update as its source, and a repair source option can be needed when that does not work. For the source error, see DISM error 0x800f081f and error 87 in Windows 11.
Step B: Run System File Checker
sfc /scannow
Warning
Do not close the Command Prompt window until the scan shows 100 percent. Closing it early can leave files half repaired. Wait for the result message.
You should see: a result message. The table below explains each one.
If this fails: if SFC reports corrupt files it could not fix, read what to do when SFC finds corrupt files but cannot fix them. If SFC does not start at all, try a restore point or the last resorts section below.
What the SFC result messages mean
| Message you see | What it means | What to do next |
|---|---|---|
| Windows Resource Protection did not find any integrity violations. | No missing or corrupted protected files were found. | Go to the built-in apps section or the new account test. |
| Windows Resource Protection found corrupt files and successfully repaired them. | Repairs were made. | Restart the PC, then test the program again. |
| Windows Resource Protection found corrupt files but was unable to fix some of them. | Some damaged files remain. | Use the SFC guide linked above, then consider System Restore. |
| Windows Resource Protection could not perform the requested operation. | The scan could not run normally. | General guidance: restart in Safe Mode, then run the scan again. |
After the repairs, follow this order.
- Restart the PC
- Test the program
- Built-in apps if they still fail
- New account if only your account fails
Built-in apps that still fail
Use this section only when a built-in app, such as Photos or Calculator, still shows the error after repair and reset. Built-in apps are part of Windows, so the fix usually runs through updates and system files. This guide does not ask you to re-register app packages from PowerShell.
- Select Start, then Settings, then Windows Update, and install any pending updates. Restart when asked.
- Check the Microsoft Store for updates to the app that fails.
- If the app still fails, run DISM and SFC from the system file section above, if you have not done so already.
You should see: the updates finish, the PC restarts, and the app opens or shows a new error message. Write down any new message.
If this fails: a new message points to a different cause. Use the error text to decide the next step. If the problem is limited to your account, test with a new local account below. Otherwise, move on to System Restore or the last resorts section.
Test with a new local account
A new account shows whether the problem is in your user profile or in Windows as a whole. This is a common test in general advice, not a Microsoft-documented fix. It creates a test account, so remove it when you are done.
Create the test account
- Select Start, then Settings, then Accounts, then Other users. On some builds this page is called Family & other users.
- Select Add account.
- Select "I don't have this person's sign-in information", then select Add a user without a Microsoft account.
- Enter a name and password, answer any security questions, and select Next.
- Sign out, sign in to the new account, and repeat the action that caused the error.
You should see: a fresh desktop. If the error does not appear in the new account, the old profile is the likely cause.
If this fails: the error also appears in the new account, so the cause is system-wide. Repair system files and consider System Restore.
Read the result
- Does the error appear in the new account?
- No: the problem is in the old profile. See how to fix a corrupt user profile in Windows, and move files to the new account only after you have backed them up.
- Yes: the problem is system-wide. Go to system file repair, then System Restore.
When you finish testing, sign out of the test account, sign in to your main account, and remove the test account from Settings, then Accounts, then Other users. Removing an account can delete its files, so confirm that you no longer need them.
Use System Restore as a safety net
System Restore returns system files, settings, and installed programs to an earlier restore point. General guidance: System Restore does not change personal files such as documents, email, or photos. It can remove apps, drivers, and updates installed after the restore point. For what it does to registry settings, see does System Restore restore the registry.
Warning
Save your files first. Restoring can remove programs and updates installed after the restore point, so note which programs you added recently.
Run System Restore
- Press the Windows key and R together, type the command below, and press Enter. You can also open Control Panel, then Recovery, then Open System Restore.
- In the Restore system files and settings window, select Next.
- Select the restore point you want. If you do not see it, select Show more restore points.
- Optionally, select Scan for affected programs to see what will change.
- Select Next, then Finish. Windows restarts when the restore is complete.
rstrui.exe
You should see: the System Restore window, then a restart and a message that the restore finished. Test the program after you sign in.
If this fails: if no restore points appear, System Protection may not have been turned on for this drive before the problem began. Then move to the last resorts section. Our guide to using System Restore covers checking protection.
When regsvr32 is appropriate
Re-registering a DLL with regsvr32 is a targeted step. Use it only when the program's maker names a specific DLL and gives you the command to run. Registering random DLL files can make the problem worse. A separate guide covers the regsvr32 error message in detail, so do not use this section as the full answer for that message.
Before you start
Registering a file changes system state. Create a restore point first, and run only the exact command the maker gave you.
Note
If you have no instructions from the maker, skip regsvr32 entirely and return to the steps above. Never download a DLL from a website to register it.
Last resorts: repair install and reset
If the steps above fail, the Windows files may be damaged beyond what DISM and SFC can repair. Two options remain. A repair install reinstalls Windows over the current system and keeps your files and most apps. Reset this PC reinstalls Windows and can remove apps and files, depending on the option you choose.
Before you use either option
Back up your personal files to an external drive or cloud storage. Write down your Wi-Fi password, program license keys, and sign-in details. Both options can take a long time and need a stable power supply.
Option 1: Repair install
- Download the Windows installation media from Microsoft and run setup from inside your current Windows.
- Choose the option that keeps your personal files and apps. Option names can change between versions.
You should see: setup restarts the PC during the process and returns you to the desktop. Test the program after you sign in.
If this fails: if setup stops with an error, restart the PC and run setup again. Do not choose an option that removes your files unless you have a backup.
Option 2: Reset this PC
- Select Start, then Settings, then System, then Recovery, then Reset PC on Windows 11. On Windows 10, the path is usually Settings, then Update & Security, then Recovery. Menu names can differ.
- Choose the option that keeps your personal files, if you want to keep them.
You should see: a reset progress screen, then the sign-in screen. Reinstall any programs you removed.
If this fails: if Recovery is missing from Settings, check whether the Windows Recovery Environment is enabled, as covered in this guide to enabling the recovery environment. If the PC also crashes with a blue screen, see the guide to REGISTRY_ERROR blue screens. Those problems need a closer look than this guide can give. If you are unsure which step fits your symptoms, you can use the Repair Assistant to narrow symptoms first.
How we checked this guide
We compared each step with Microsoft documentation. We did not run these steps on a real PC. Where we could not confirm a step or menu name on a Microsoft page, we label it as general guidance. Menu names can differ on your version of Windows.
A note for Windows 10 users
Windows 10 support ended on October 14, 2025, according to Microsoft Support's page on the end of Windows 10 support. Consumer Extended Security Updates run until October 12, 2027, as described on the same page. ESU provides security updates. It does not change the steps in this guide, and it does not add general technical support for problems like this one.
General guidance: menus on Windows 10 can differ from the Windows 11 paths shown here, so use the closest matching option. The DISM and SFC commands are the same on Windows 10. For more help, see our PC repair guides.
Frequently asked questions
About the error
What does the class not registered error mean?
It means a program asked Windows for a component, and Windows could not find a working registration for that component. The fix is usually to repair the program, repair Windows system files, or reset a built-in app. Editing the registry is not part of the safe fix path.
Is error code 0x80040154 the same as this message?
It is often reported together with this message, and it is often listed as REGDB_E_CLASSNOTREG. We did not find an official Microsoft page for that code, so treat the name as general guidance. Compare the steps with the exact message you see on screen.
Can a registry cleaner fix this error?
No. Registry cleaners are not recommended for this error. Changes to registry entries can make a working system less stable, and nothing in this guide depends on one. Stick to the repair and reset steps above.
Does this error mean the hard drive is failing?
Usually not. As general advice, the error points to a software or Windows component problem. If you also see disk errors, freezing, or clicks from the drive, check the drive's health separately before you run repairs.
Fixing it safely
Should I run DISM or SFC first?
Run DISM first. Microsoft recommends it because DISM repairs the Windows image that SFC uses. Run each command in its own Command Prompt window and wait for each to finish before you start the next one.
Will repairing the app delete files?
Repair normally keeps your data. Reset can remove saved settings and sign-in details, so write those down first. As general guidance, repair is the gentler option and reset is the more disruptive one. If the problem is in the user profile rather than the app, read the profile guide before you change anything.
Should I reset a built-in app before trying anything else?
Start with repair, then reset, as described in the app section above. If the built-in app still fails, run DISM and SFC, then test with a new local account. Reset can remove saved app settings, so note them first.
Should I use regsvr32 on any DLL the error names?
No. Use regsvr32 only when the program's maker names the specific DLL and the exact command. Registering the wrong file can cause new problems, and downloading DLLs from websites is a common source of malware.
Sources
- Use the System File Checker tool to repair missing or corrupted system files | Microsoft Support
- Repair apps and programs in Windows | Microsoft Support
- Install Windows updates | Microsoft Support
- How to perform a clean boot in Windows | Microsoft Support
- Latest Supported Visual C++ Redistributable Downloads | Microsoft Learn
- Windows 10 support has ended on October 14, 2025 | Microsoft Support