Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UWP App Won't Start

I have a UWP app. I'm using Visual Studio 2017 15.4.1. The UWP app is a store app and has been deployed to the Microsoft Store. My app was working fine in the store, and it was also working fine when I hit play in Visual Studio. Then recently, an isolated storage issue started occurring so I went in to the app in "Apps & Features" and hit Advanced Options -> Reset. Somehow this has fried my app installation on my machine. Our app no longer shows up as an installed app, and when I try to install the app from the store, I get an error with a code of 0x80073CF9. So, I can't uninstall, or reinstall on my machine. I've tried running sfc /scannow etc. to find out what's wrong, but nothing seems to help.

This wouldn't even worry me too much, but I can't even develop right now because when I try to run the app from Visual Studio, I get this error:

In order to debug this project, you must consume it from a Windows Store app project that creates a package and is marked as the Startup Project

I'm getting this error in the output window from the build

4>DEP0700: Registration of the app failed. [0x80073CF9] Another user has already installed an unpackaged version of this app. The current user cannot replace this with a packaged version. The conflicting package is [APP NAME] and it was published by CN=[Publisher].

What did I do wrong?

like image 810
Christian Findlay Avatar asked Oct 23 '17 01:10

Christian Findlay


People also ask

What is replacing UWP?

14 January 2022. As you already know, WinUI is Microsoft's follow-up to UWP. As the successor to the UWP platform, Microsoft has invested heavily in the WinUI platform.

Can UWP run on Windows 10?

UWP is one choice for creating apps that run on Windows 10 and Windows 11 devices, and can be combined with other platforms. UWP apps can make use of Win32 APIs and . NET classes (see API Sets for UWP apps, Dlls for UWP apps, and .

Is UWP going away?

Going forward, UWP will only receive "bug, reliability, and security fixes," and not new features, Microsoft says, indicating that it is now deprecated. Developers with UWP apps in the market who "are happy with [the] current functionality in UWP" can of course continue to keep using UWP.


1 Answers

You can use Get-appxpackage -allusers *<appname>* | Remove-AppxPackage

The allusers option is important here.

You can also try to manually remove the content of the application cache folder in C:\Users\\AppData\Local\Packages\. If you have one locked file here, the whole deployment will fail.

like image 177
Vincent Avatar answered Oct 16 '22 19:10

Vincent