Reputation: 269
I'm trying to work from home on a UWP project, on a macbook with dualboot using windows 10, in visual studio 2015.
(So it's not on a virtual machine, which is what I find everywhere when looking for this problem)
I thought I have everything correctly set up, but when I try to run the project, I get the error:
Error DEP0700 : Registration of the app failed. Rejecting a request to register from AppxBundleManifest.xml because the manifest is not in the package root. (0x80073cf9) Ambiorix.UWP
Windows is set to developer mode, and I have the windows 10 anniversary update installed. And the file Package.appxmanifest is in fact in the root of the project. Which I was told is the manifest it is complaining about (or contains it? I don't know much about manifest files)
I have no clue at to what might be causing this, any help much appreciated.
If you need more info, just tell me, I just don't know what else to add.
Upvotes: 26
Views: 22366
Reputation: 127
Get-AppxPackage -all *YourAppName* | Remove-AppxPackage -AllUsers
The app will be removed from all users. Now you can deploy an app.
Upvotes: 0
Reputation: 133
For .Net Maui .Net 7:
In my case, it was some wayward text in the project file that gave problems to the DotNet Maui project:
<ApplicationTitle>ContainersCR-LFGive feedbackCR-LFSearchCR-LFOnly running</ApplicationTitle>
On one hand, the CR/LF new line was the problem. On the other, this garbage was there long before it started to fail.
Upvotes: 0
Reputation: 1502
check the 'package name' and 'package family name' in your Package.appxmanifest, no special characteres use only letters and '-'
Upvotes: 0
Reputation: 1370
I re-installed my app from the Microsoft Store, then in Settings Add/Remove Programs I clicked on the '...' menu option to uninstall it.
Afterwards I was able to re-deploy the debug build okay.
I suspect there was some lock between the officially installed Microsoft Store version and the developer built version.
Upvotes: 1
Reputation: 745
In my case, there was a conflicting package installed under a different name, probably from a Visual Studio debug session.
To find all packages, I ran
Get-AppxPackage -AllUsers > out.txt
I found the conflicting package there by the publisher name. Then I removed it:
Remove-AppxPackage -AllUsers 5211b96d-a951-4e83-87f9-ef1af6cf7c97_2.0.11.0_x64__mgqd55e5kfvyj
After that, I could launch the app from Visual Studio.
Upvotes: 9
Reputation: 1780
I resolved the problem this way.
I had opened my project via a substituted drive, G:, which was mapped to a subdirectory of my C: drive. I closed the project and re-opened it using the full path via C:. Then everything worked.
Upvotes: 0
Reputation: 31
I had the same error, which turned out to be due to separate installations of my app on the same computer but under different accounts.
Upvotes: 1
Reputation: 11
I solved the problem by changing the property of the Package.appxmanifest file: Copy to exit directory = Always Copy
Upvotes: 1
Reputation: 1050
It turns out that the 0x80074CF6 error code toghether with the DEP0700 error can be a very misleading one as it can refer to a lot of things. I'll add what my problem for a simple, empty UWP project was (for which I did some slight modifications in the app manifest file for changing name, tiles, logo, etc.), maybe it helps someone else.
Turns out that for me, the error was actually due to failing to correctly locate and load up the splash screen image. To make things even weirder, I restarted the computer and started up VS2017 as Admin and got the full error message as:
"Severity Code Description Project File Line Suppression State Error DEP0700: Registration of the app failed. [0x80073CF6] AppxManifest.xml(66,27): error 0x80070002: Cannot install or update package Microsoft.SkypeUwpStub_daxd5377s5hcj because the splash screen image [SplashScreen.png] cannot be located. Verify that the package contains an image that can be used as a splash screen for the application, and that the package manifest points to the correct location in the package where this splash screen image can be found. SkypeUwpStub "
Fixing it was pretty straightforward. I forgot to properly reference the Assets images from the actual folder on the disk (where I physically copied some asset files).
Upvotes: 0
Reputation: 252
I had package for upload to Store and fixed that bug in following way:
That's it!
Upvotes: 0
Reputation: 3101
I did the toggle between developer mode to sideload apps and back again as described by Matt - (search for Developer Features in Windows 10 to do that) - but then I got a new error "...unexpected host id encountered...".
I then changed the Solution Platform to x64 and my app started.
Upvotes: 0
Reputation: 81
I had this mistake after I tried to package my UWP app. I solved the issue by
Upvotes: 0
Reputation: 1465
I had a similar error, in deploying a blank UWP project (created with the Blank App (Universal Windows)
) template.
DEP0700: Registration of the app failed. [0x80073CF0] error 0x80070003: Opening file from location: AppxManifest.xml failed with error: The system cannot find the path specified..
After reading the answers here I had hunch that the problem may have been that he project was on a network drive. So, first I created the same project on the local hard drive (under C:\Users...), and it ran OK.
To fix the project on the network drive, I edited the Project -> Properties -> Debug
and set the Target device
to Remote Machine
, the Remote machine to Localhost
and the Authentication Mode
to Windows
.
Upvotes: 17
Reputation: 379
In my case, app was installed by another user. After deleting it, error was gone.
Upvotes: 20
Reputation: 123
In Windows 10 I toggled from "Developer mode" to "Sideload apps" and back to "Developer mode" and it started working again.
Upvotes: 7