sodcalculator

10 Tech How-To

Windows Error 0x80040154: Fix App Launch Failures

Guide 10-58362 · Updated · Step by step

Windows error 0x80040154, often accompanied by the message “Class not registered,” stops apps from opening when Windows cannot find a required Component Object Model (COM) component or a file association. This guide explains the common causes and provides step-by-step fixes, from re-registering DLL files to repairing the Microsoft Store, so you can get your apps running again.

What Does Error 0x80040154 Mean?

The hexadecimal code 0x80040154 is a COM error that translates to REGDB_E_CLASSNOTREG — “Class not registered.” It occurs when an application tries to instantiate a COM object (a reusable software component) that Windows cannot locate in the registry. The registry is a database where Windows and programs store configuration settings, including the location of these components. When a required entry is missing, corrupted, or points to a file that no longer exists, the program fails to start.

This error is not limited to a single app. It can appear with built-in Windows utilities like Photos, Mail, or Calculator, as well as third-party software like Adobe products or Microsoft Office. It also frequently occurs when trying to open the Microsoft Store or run 64-bit applications on a 32-bit version of Windows, though that scenario is less common today.

Common Causes of 0x80040154

Several underlying issues can trigger this error. Understanding the root cause helps you choose the right fix:

  • Corrupted or missing registry entries: A failed update, a malware infection, or an incomplete uninstall can leave broken COM class registrations.
  • Outdated or incompatible drivers: Especially graphics or audio drivers, which often rely on COM components.
  • Windows system file corruption: Essential system files may be damaged, affecting the ability to register COM objects.
  • Improperly installed applications: An installation that did not complete can leave the registry in an inconsistent state.
  • 32-bit vs. 64-bit mismatch: A 32-bit program trying to use a 64-bit COM component (or vice versa) will fail with this error.

How to Fix Error 0x80040154

Work through these fixes in order, testing the problematic app after each step.

  1. Restart Windows Explorer and your PC. Sometimes a temporary glitch is the culprit. Press Ctrl+Shift+Esc to open Task Manager, find “Windows Explorer,” right-click it, and choose “Restart.” If that doesn’t help, fully restart your computer.
  2. Run the Windows Store Apps troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters, select “Windows Store Apps,” and click “Run.” This tool automatically detects and fixes common problems with apps, including registration issues.
  3. Repair or reset the problematic app. Go to Settings > Apps > Installed apps, find the app, click the three-dot menu, and choose “Advanced options.” Then click “Repair” or “Reset.” This re-registers the app’s components without deleting your data.
  4. Re-register the Microsoft Store. Open PowerShell as administrator (right-click the Start button and select “Windows PowerShell (Admin)” or “Terminal (Admin)”). Type the following command and press Enter:
    Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    This re-registers all built-in Windows apps, which often resolves COM class registration errors.
  5. Run System File Checker (SFC) and DISM. Open Command Prompt as administrator and run sfc /scannow. After it finishes, run DISM /Online /Cleanup-Image /RestoreHealth. These tools repair corrupted system files that may be causing the error.
  6. Reinstall the application. If the error persists for a specific third-party app, uninstall it completely (using the Settings > Apps menu), then download the latest version from the official website and reinstall. This ensures all required COM components are properly registered.

Advanced Fixes for Persistent Errors

If the standard fixes don’t work, you may need to manually re-register the COM component. This requires knowing which class is failing. Check the Windows Event Viewer (under Windows Logs > Application) for an error entry with the code 0x80040154. The details may mention a specific DLL file or COM class ID.

Once you have the file name, open Command Prompt as administrator and run:

regsvr32 "C:\path\to\file.dll"

For example, if the error mentions jscript.dll, you would run regsvr32 jscript.dll. Note that 64-bit Windows has two versions of regsvr32: one for 64-bit DLLs (in C:\Windows\System32) and one for 32-bit DLLs (in C:\Windows\SysWOW64). If the app is 32-bit, you may need to run the 32-bit version: C:\Windows\SysWOW64\regsvr32.exe file.dll.

Another advanced step is to check the registry for the specific COM class. Use regedit to navigate to HKEY_CLASSES_ROOT\CLSID\{class-id}. If the key is missing, you may need to reinstall the software that owns it. Editing the registry incorrectly can cause serious system problems, so only proceed if you are comfortable and have a backup.

Preventing Future Occurrences

Once you’ve fixed the error, take these steps to reduce the chance of it returning:

  • Keep Windows updated: Install all Windows updates, as they often include fixes for COM and app registration issues.
  • Install software from official sources: Always download apps from the official website or the Microsoft Store to avoid corrupted installers.
  • Use a reliable antivirus: Malware can delete or modify registry entries. Run regular scans.
  • Create a system restore point: Before making major changes or installing new software, create a restore point so you can revert if something goes wrong.

Frequently Asked Questions

Can error 0x80040154 damage my computer?

No, the error itself is harmless. It only prevents an app from opening. However, the underlying cause (like malware or file corruption) could be a concern, so it’s wise to run a virus scan and fix the error promptly.

Why does this error happen with Microsoft Store apps?

Store apps rely heavily on COM components and a properly registered AppX package. If the package becomes unregistered (often due to a failed update or a corrupted cache), the app fails to launch with this error. Re-registering the Store via PowerShell usually resolves it.

Will I lose my data if I reset the app?

Resetting an app clears its local data, such as settings and saved files. For example, resetting the Photos app will remove your customizations but not your actual photos. For most apps, “Repair” preserves data, while “Reset” deletes it. Always back up important data before resetting.

Is this error related to a virus?

Not necessarily, but malware can cause it by corrupting registry entries. If the error appears suddenly and you haven’t installed anything new, run a full system scan with Windows Defender or a trusted third-party antivirus to rule out infection.

Can I ignore this error if it only happens with one app?

You can, but the app will remain unusable. If it’s an app you rarely use, ignoring it is safe. However, if the error appears with multiple apps, it indicates a system-wide issue that should be fixed to prevent further problems.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →