How to Fix ‘Class Not Registered’ (Error 0x80040154) in Windows 11

Double-clicking an image file, launching File Explorer, opening the Settings panel, or starting Microsoft Office applications in Windows 11 can abruptly fail with a dialogue box stating: “Class not registered” (COM error code 0x80040154 / REGDB_E_CLASSNOTREG). This error indicates that the operating system attempted to execute a software component via Component Object Model (COM) interfaces, but the associated Dynamic Link Library (DLL) or registry Class ID (CLSID) is missing, corrupted, or unregistered.

Why Does Error 0x80040154 Occur in Windows 11?

Windows relies extensively on COM architecture to allow distinct applications to interact with shell handlers, media codecs, and system services. When Windows encounters error 0x80040154, the registry index connecting a requested program feature to its underlying binary is broken. Common causes include:

  • Unregistered System DLLs: Critical system libraries such as ExplorerFrame.dll have had their registry registrations wiped or damaged by an incomplete Windows Update.
  • Corrupted Default App Associations: Opening .jpg or .png files raises the error when the Windows Photos app or modern media player registration is missing from HKEY_CLASSES_ROOT.
  • Broken Visual C++ Runtime Packages: Outdated or damaged runtime distributables failing to provide required COM dependencies.
  • Disabled Internet Explorer ETW/COM Engine: Certain legacy shell utilities rely on registered MSHTML/COM classes that were deregistered during browser retirements.

Step 1: Re-Register ExplorerFrame.dll via Elevated Command Prompt

If the error appears when opening File Explorer, browsing folders, or using desktop navigation shortcuts, re-registering the primary Explorer frame library restores functionality.

  1. Press Windows Key + S, type cmd, and click Run as administrator.
  2. In the elevated Command Prompt window, execute the following command:
    regsvr32.exe ExplorerFrame.dll
  3. You should see a confirmation pop-up stating: “DllRegisterServer in ExplorerFrame.dll succeeded.” Click OK.
  4. Restart your computer and verify whether File Explorer launches without error.

Step 2: Reset Default App Associations in Windows Settings

If the “Class not registered” alert appears specifically when opening image files, PDFs, or web links, the file extension handler in the registry is corrupt.

  1. Press Windows Key + I to launch Settings.
  2. Select Apps from the left sidebar and click Default apps.
  3. Scroll down to the bottom of the page and locate Reset all default apps.
  4. Click the Reset button next to “Restore all default applications to Microsoft recommended defaults”.
  5. Confirm the prompt. This forces Windows to rebuild standard file associations for Photos, Media Player, and Edge.

Step 3: Re-Register All Core Windows Universal Apps via PowerShell

If built-in apps such as Photos, Calculator, or the Start Menu trigger the error, re-registering AppX packages rebinds their COM Class IDs.

  1. Right-click the Start button and choose Terminal (Admin) or PowerShell (Admin).
  2. Copy and paste the following command into PowerShell and hit Enter:
    Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
  3. Allow the script several minutes to iterate across all installed packages. Ignore any temporary red progress warnings regarding in-use packages.
  4. Once the prompt returns, reboot the system.

Step 4: Run System File Checker (SFC) and DISM Repairs

To repair damaged system binaries and restore uncorrupted registry hives from the local component store:

  1. Open Command Prompt (Admin).
  2. Execute the DISM health repair command:
    DISM /Online /Cleanup-Image /RestoreHealth
  3. Once DISM reports completion at 100%, execute the System File Checker:
    sfc /scannow
  4. Restart Windows when finished.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.