Home > Mobile >  Registration on the app failed (MAUI/Comet)
Registration on the app failed (MAUI/Comet)

Time:02-19

Code: https://github.com/ToadallyAwesome2/ComettTest

So I am using Maui/Comet. I just want to run a sample project, but I get this error:

DEP0700: Registration of the app failed. [0x80073CF6] 
AppxManifest.xml(33,27): error 0x80070003: Cannot install or update 
package BF12F2F8-C129-4401-821A-69268F23ED72_9zz4h110yvjzm because the
 splash screen image [appiconfgSplashScreen.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.

Anyone knows what I can do? I tried making an assets folder with that png, but it didnt work.

UPDATE Did what Gerard Versluis recommended and got the following error:

DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE020:
 App manifest validation error: The app manifest must be valid as per 
schema: Line 26, Column 8, Reason: Het vereiste kenmerk 
Square150x150Logo ontbreekt.    CometApp1           

translation: The required attribute Square150x150Logo is missing. I notice that it keeps asking for the Square150x150Logo

CodePudding user response:

This happens because of change in one of the previews. Long story short; we used to have an Assets folder for the Windows app, but not anymore. Since it's all in preview there wasn't a concern for backwards compatibility, but now this could occur.

It happens because you probably started a project earlier, with older templates, and are now trying to build against new preview bits. So in the templates the Assets folder is still mentioned, but is no long there.

The steps to take are also described in the preview 13 migration guide.

  1. Go into the Platforms\Windows folder and open the Package.appxmanifest file. Right-click > Open With... and choose the XML editor
  2. Remove all references to Assets\
  3. Double-check your App.xaml file to see if there is a windows:Application.ImageDirectory attribute on the Application node. If so, remove it. For example:
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:windows="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.WindowsSpecific;assembly=Microsoft.Maui.Controls"
             windows:Application.ImageDirectory="Assets"
             x:Class="WeatherTwentyOne.App">

should now be

<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="WeatherTwentyOne.App">

After that, it should work again!

To make sure it doesn't happen again, make sure that you have the latest templates by running dotnet new -i Microsoft.Maui.Templates which should get you the latest templates that do not reference Assets anymore.

  • Related