Windows 10: Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...

Discus and support Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from... in Windows 10 Gaming to solve the problem; Issue Description:After updating Windows, the Clipcharm and Copilot apps disappeared from the system.Upon attempting to reinstall them from Microsoft... Discussion in 'Windows 10 Gaming' started by xuan trang, Mar 14, 2025.

  1. Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...


    Issue Description:After updating Windows, the Clipcharm and Copilot apps disappeared from the system.Upon attempting to reinstall them from Microsoft Store, the error occurs: System.Runtime.InteropServices.COMException 0x80040154: Class not registered 0x80040154 REGDB_E_CLASSNOTREG.Actions Taken to Fix the Issue:Ran the command sfc /scannow to check and repair system files.Used the DISM command to restore and repair the system image.Tried reinstalling the apps via Microsoft Store.Outcome:None of the above steps have resolved the issue.Additional Information:Current Windows version e.g.,

    :)
     
    xuan trang, Mar 14, 2025
    #1
  2. WEILI_82 Win User

    System. Runtime. InteropServices. COMException (0x80004005): Calls to COM components return an error HRESULT E_FAIL.

    Hello:

    I have some problem in Windows 7 x32 and x64 OS, When I use the same code in windows 10 OS, Its works fine without this exception.

    I copy UIAtutomationCore.dll file from windows 7 OS to windows 10 OS. The UIAutomationCore.dll file is converted in windows 10 OS. (C:\UIA>TlbImp.exe UIAutomationCore.dll /out:Interop.UIAutomationCore.dll) . Mistakes do not happen every single time,
    but occasionally.

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Runtime.InteropServices;

    using System.Text;

    using System.Threading;

    using Interop.UIAutomationCore;

    namespace ConsoleTest

    {

    class Program

    {

    static IUIAutomationCondition propertyCondition;

    static CUIAutomation _automation = new CUIAutomation();

    static void Main(string[] args)

    {

    IUIAutomationCondition controlTypecondition = _automation.CreatePropertyCondition(UIA_PropertyIds.UIA_ControlTypePropertyId, UIA_ControlTypeIds.UIA_ButtonControlTypeId);

    IUIAutomationCondition nameCondition = _automation.CreatePropertyCondition(UIA_PropertyIds.UIA_NamePropertyId, "ButtonName");

    IUIAutomationCondition condition = _automation.CreateAndCondition(controlTypecondition, nameCondition);

    try

    {

    IUIAutomationElement targetElement = _automation.GetRootElement().FindFirst(TreeScope.TreeScope_Subtree, nameCondition);

    }

    catch(COMException ex)

    {

    Console.WriteLine(ex.ToString());

    }

    Console.ReadKey();

    }

    }

    }

    The error message is as follows:

    System. Runtime. InteropServices. COMException (0x80004005): Calls to COM components return an error HRESULT E_FAIL.

    In Interop. UI Automation Core. IUI Automation Element. FindFirst (TreeScope scope, IUI Automation Condition)

    Looking forward to your reply, thank you.
     
    WEILI_82, Mar 14, 2025
    #2
  3. kaltland Win User
    Registry Error - Windows Update - Error Code 0x80040154

    Hello all,
    I have an issue with my WIndows Updates, I am getting error code 0x80040154 and all the sites I checked did not help.

    Here is my Windows Update log:
    Got 9482F4B4-E343-43B6-B170-9A65BC822C77 redir SecondaryServiceAuth URL: 117cab2d-82b1-4b5a-a08c-4d62dbee7782""
    CoCreateInstance Failed: hr = 0x80040154
    Failed to retrieve SLS response data for service 117cab2d-82b1-4b5a-a08c-4d62dbee7782, error = 0x80040154
    Caller Service Recovery failed to opt in to service 117cab2d-82b1-4b5a-a08c-4d62dbee7782, hr=0X80040154

    Checked in the Registry and here is what is listed
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\Pending\117cab2d-82b1-4b5a-a08c-4d62dbee7782

    I have tried everything to get it to the correct location without any luck.

    SFC / DISM / ResetWUEeng / WinFixit / and the list goes on.

    I also deleted it and broke my computer and could not restore it. Had to start all over again and still received the same error message.

    Does anybody have any suggestions. Thanks.
     
    kaltland, Mar 14, 2025
    #3
  4. OldMike65 Win User

    Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...

    Runtime Errors

    Ok @FreeBooter. none of your suggestions worked. Still have the runtime error When ever I view the reliability history, under Maintenance.

    Doing your last suggestion did nothing....did them separate and then rebooted.

    "Reinstalling the app package for Cortana and re-registering Cortana may help fix it.
    This tutorial will show you how to reinstalling and re-registering Cortana for only your account (current user) in Windows 10.

    Reinstall and Re-register Cortana using the following procedure:
    1. If the Cortana search not working open the Windows PowerShell by pressing Ctrl + Shift + Esc keys, this will open a Task Manager. "



    Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from... 258453d1575895771t-runtime-errors-cortana2.png
     
    OldMike65, Mar 14, 2025
    #4
Thema:

Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...

Loading...
  1. Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from... - Similar Threads - Error System Runtime

  2. Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...

    in Windows 10 Software and Apps
    Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...: Issue Description:After updating Windows, the Clipcharm and Copilot apps disappeared from the system.Upon attempting to reinstall them from Microsoft Store, the error occurs: System.Runtime.InteropServices.COMException 0x80040154: Class not registered 0x80040154...
  3. Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...

    in Windows 10 Installation and Upgrade
    Error System.Runtime.InteropServices.COMException 0x80040154 when reinstalling apps from...: Issue Description:After updating Windows, the Clipcharm and Copilot apps disappeared from the system.Upon attempting to reinstall them from Microsoft Store, the error occurs: System.Runtime.InteropServices.COMException 0x80040154: Class not registered 0x80040154...
  4. Error 0x80040154 when installing update

    in Windows 10 Gaming
    Error 0x80040154 when installing update: Been waiting for 7 hours to install an update and now it gave me an error. https://answers.microsoft.com/en-us/windows/forum/all/error-0x80040154-when-installing-update/594c1078-8fee-493c-b080-c01933cd1c9f
  5. Error 0x80040154 when installing update

    in Windows 10 Software and Apps
    Error 0x80040154 when installing update: Been waiting for 7 hours to install an update and now it gave me an error. https://answers.microsoft.com/en-us/windows/forum/all/error-0x80040154-when-installing-update/594c1078-8fee-493c-b080-c01933cd1c9f
  6. App Install Error 0x80040154

    in Windows 10 Gaming
    App Install Error 0x80040154: I had reported this error before but unfortunately the thread was closed before i had chance to try it out and reply - it didn't fix the problem : I am still getting the issue below when i try and install pretty much any game from the "Xbox beta" App using Game Pass. Not...
  7. Windows 10 Xbox App giving Error Code 0x80040154

    in Windows 10 Gaming
    Windows 10 Xbox App giving Error Code 0x80040154: Not really sure what the problem is here as there is not information about this error code online. Trying to install various games from the "xBox App" for windows, using the Game Pass subscription and some games work perfectly, others give me this error code. I've already...
  8. error 0x80040154

    in Windows 10 Customization
    error 0x80040154: What is this error 0x80040154? https://answers.microsoft.com/en-us/windows/forum/all/error-0x80040154/fecc3aa8-a4ab-437b-9f61-a60ccaeb94d6
  9. Registry Error - Windows Update - Error Code 0x80040154

    in Windows 10 Updates and Activation
    Registry Error - Windows Update - Error Code 0x80040154: Hello all, I have an issue with my WIndows Updates, I am getting error code 0x80040154 and all the sites I checked did not help. Here is my Windows Update log: Got 9482F4B4-E343-43B6-B170-9A65BC822C77 redir SecondaryServiceAuth URL: 117cab2d-82b1-4b5a-a08c-4d62dbee7782""...
  10. DISM COMException Error

    in Windows 10 Performance & Maintenance
    DISM COMException Error: I've discovered a weird issue on Windows 10x64 10525 PS C:\WINDOWS\system32> dism.exe /online /cleanup-image /scanhealth Deployment Image Servicing and Management tool Version: 10.0.10525.0 Image Version: 10.0.10525.0...