Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

UWP APPX Deployment fails with ‘Deployment failed. XmlException’

On the App Consult team we may work on several different applications in given day. The other day when using Visual Studio 2017 to deploy a UWP app I got the following error:

DEP0600: Deployment Failed. XmlException – Data at the root level is invalid. Line 24, position 11.

After much debugging and Binging, an SDE pointed out that I was hitting a known bug in the OS – which will be fixed in the upcoming Fall Creators update. It turns out this is caused by previously deploying another app with a malformed AppxManifest.xml file. I had several test apps installed on my machine some deployed with Visual Studio, some installed with PowerShell using the command:

Add-AppxPackage -Register .PackageLayoutAppxManifest.xml

After uninstalling several of the test apps, I was able to deploy my app with Visual Studio 2017 without problems.

Tip: Learn more about the Desktop Bridge from this excellent Microsoft Virtual Academy course: Developer’s Guide to the Desktop Bridge.

Share the post

UWP APPX Deployment fails with ‘Deployment failed. XmlException’

×

Subscribe to Msdn Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The Msdn Blogs.

Get updates delivered right to your inbox!

Thank you for your subscription

×