[0x80073CF6] error 0x80070003: Windows cannot create the AppContainer profile for the Microsoft.UI.Xaml.2.7_7.2109.13004.0_x64__8wekyb3d8bbwe package.

Hong 1,246 Reputation points
2022-12-20T20:26:46.367+00:00

A UWP app runs fine on a local machine but VS threw the following error when it tried to deploy it to a remote machine that runs VS 2022 Remote Debugger:

DEP0800: The required framework "C:\Users\...\.nuget\packages\microsoft.ui.xaml\2.7.0\buildTransitive\..\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.7.appx" failed to install. [0x80073CF6] error 0x80070003: Windows cannot create the AppContainer profile for the Microsoft.UI.Xaml.2.7_7.2109.13004.0_x64__8wekyb3d8bbwe package.  

NuGet manager did not show any microsoft.ui.xaml package for the app, so I installed the latest version of microsoft.ui.xaml 2.8.1, but now I am getting the following:

DEP0800: The required framework "C:\Users\...\.nuget\packages\microsoft.ui.xaml\2.8.1\buildTransitive\..\tools\AppX\x64\Release\Microsoft.UI.Xaml.2.8.appx" failed to install. [0x80073CF6] error 0x80070003: Windows cannot create the AppContainer profile for the Microsoft.UI.Xaml.2.8_8.2208.12001.0_x64__8wekyb3d8bbwe package.  

Could anyone offer a tip to help remedy this?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | Visual Studio | Debugging
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.