Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x64__8wekyb3d8bbwe already-installed bug

hernandik krammes 1 Reputation point
2021-01-25T21:56:12.477+00:00

I'm trying to deploy my UWP application in developer mode, via POWERSHELL terminal (it MUST BE DEPLOYED VIA TERMINAL)

The application was deployed in past via terminal "fine" with the VS2017 compiled version.

Now it is being compiled with VS2019, but when I try to deploy it via POWERSHELL, I get this error:

> Add-AppxPackage : Deployment failed with HRESULT: 0x80073CFB, The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details. > > Deployment of package Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x64__8wekyb3d8bbwe was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old > package for every user on the system before installing this package. > > NOTE: For additional information, look for [ActivityId] 71a1ba6c-f33f-0004-c4e6-a1713ff3d601 in the Event Log or use the command line Get-AppPackageLog -ActivityID 71a1ba6c-f33f-0004-c4e6-a1713ff3d601

I run the above command in a PowerShell terminal as administrator, since it didn't worked as normal user.

I already tried several ways to remove the Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x64__8wekyb3d8bbwe runtime, without success. One of several examples in web are:

https://learn.microsoft.com/en-us/answers/questions/79515/uwp-app-x64-microsoftnetcoreruntime22appx-failed-t.html https://stackoverflow.com/questions/13865930/how-to-uninstall-an-app-that-another-user-installed

These are some of the sites and solutions that I execute, in a attempt to try fix this issue, without success.

All them seen to rely on the ability to appx-remove (with and without --allusers flag) to remove the app, what does not happen:

The follow error happen when I try tro remove the runtime:

> PS C:\WINDOWS\system32> Get-AppxPackage -AllUsers 'Microsoft.NET.CoreRuntime.2.' | Remove-AppxPackage -AllUsers > Remove-AppxPackage : Package failed updates, dependency or conflict validation. > Windows cannot remove framework Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x86__8wekyb3d8bbwe because package(s) app.ae661c378-4548-409a-afa5-6c0202234a28 currently > depends on the framework. Removing all packages that depend on the framework automatically removes the framework. > At line:1 char:62 > + ... lUsers 'Microsoft.NET.CoreRuntime.2.' | Remove-AppxPackage -AllUsers > + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > + CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException > + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

I was unable to discover who is app.ae661c378-4548-409a-afa5-6c0202234a28

I don't know what more to do, and I'll have to freeze my CI because I can't deploy anymore my application.

Universal Windows Platform (UWP)
{count} votes

2 answers

Sort by: Most helpful
  1. AryaDing-MSFT 2,916 Reputation points
    2021-01-28T10:02:24.943+00:00

    Hi,

    Welcome to Microsoft Q&A!

    You could right click the start menu and selected “Apps and Features”. In the list was Microsoft .Net Core SDK 2.2.7, you could uninstall it manually.
    Then you could go back to "C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86.microsoft.net.uwpcoreruntimesdk\2.2.10\tools\Appx\" and try to reinstall the Microsoft.NET.CoreRuntime.2.2 appx.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. hernandik krammes 1 Reputation point
    2021-01-28T14:54:28.133+00:00

    I already tried to do that, but Microsoft .Net Core SDK 2.2.7 is not available inside “Apps and Features”, so I'm unable to uninstall through APP and FEATURES.
    It is only visible though powershell get-appxpackage

    PS C:\WINDOWS\system32> Get-AppxPackage -AllUsers 'Microsoft.NET.CoreRuntime.2.*'

    Name : Microsoft.NET.CoreRuntime.2.2
    Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    Architecture : X86
    ResourceId :
    Version : 2.2.27902.3
    PackageFullName : Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x86__8wekyb3d8bbwe
    InstallLocation : C:\Program Files\WindowsApps\Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x86__8wekyb3d8bbwe
    IsFramework : True
    PackageFamilyName : Microsoft.NET.CoreRuntime.2.2_8wekyb3d8bbwe
    PublisherId : 8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-21-3823893153-2927514590-2951913700-1002 [myuser]: Installed}
    IsResourcePackage : False
    IsBundle : False
    IsDevelopmentMode : False
    NonRemovable : False
    IsPartiallyStaged : False
    SignatureKind : Developer
    Status : Ok

    Name : Microsoft.NET.CoreRuntime.2.2
    Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    Architecture : X64
    ResourceId :
    Version : 2.2.27902.3
    PackageFullName : Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x64__8wekyb3d8bbwe
    InstallLocation : C:\Program Files\WindowsApps\Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x64__8wekyb3d8bbwe
    IsFramework : True
    PackageFamilyName : Microsoft.NET.CoreRuntime.2.2_8wekyb3d8bbwe
    PublisherId : 8wekyb3d8bbwe
    PackageUserInformation : {S-1-5-18 [S-1-5-18]: Staged, S-1-5-21-3823893153-2927514590-2951913700-1002 [myuser]: Installed}
    IsResourcePackage : False
    IsBundle : False
    IsDevelopmentMode : False
    NonRemovable : False
    IsPartiallyStaged : False
    SignatureKind : Developer
    Status : Ok

    PS C:\WINDOWS\system32>

    The removal in this way FAIL with the error in the first message of this thread.

    Get-AppxPackage -AllUsers 'Microsoft.NET.CoreRuntime.2.*' | Remove-AppxPackage -AllUsers