locked
Windows Application Packaging Project store app submission error (The package file AppName.appx specifies a headless app) RRS feed

  • Question

  • Hi,
    I'm using Windows Application Packaging Project (WAPP) to convert a C++ executable to Windows 10 Store app. Earlier I used Desktop Bridge to package my app successfully which is also available on Windows Store.
    Now to use some advanced features, I chose WAPP. It contains one C++ project (main startup project) and another UWP project (secondary project).

    The UWP app required AppServiceConnection from an external app and to do so, I had to create two Application entries in WAPP's appxmanifest file. Without that, AppServiceConnection was not functioning. So, the Package.appxmanifest file now contains two Application Entries:

      <Applications>
        <Application Id="App"
          Executable="$targetnametoken$.exe"
          EntryPoint="$targetentrypoint$">
          <uap:VisualElements
            DisplayName="MySampleApplication"
            Description="MySampleApplication"
            BackgroundColor="transparent"
            Square150x150Logo="Images\Square150x150Logo.png"
            Square44x44Logo="Images\Square44x44Logo.png">
            <uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" />
            <uap:SplashScreen Image="Images\SplashScreen.png" />
          </uap:VisualElements>
        </Application>
    
        <Application Id="App2"
                     Executable="MySampleUWP.exe"
                     EntryPoint="MySampleUWP.App">
          <uap:VisualElements
            DisplayName="MySampleUWP"
            Square150x150Logo="Assets\Square150x150Logo.png"
            Square44x44Logo="Assets\Square44x44Logo.png"
            Description="MySampleUWP"
            BackgroundColor="transparent"
            AppListEntry="none">
            <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
            <uap:SplashScreen Image="Assets\SplashScreen.png" />
          </uap:VisualElements>
          <Extensions>
            <uap:Extension Category="windows.appService">
              <uap:AppService Name="uwp.sample.app"  />
            </uap:Extension>
          </Extensions>
        </Application>
      </Applications>
    
      <Capabilities>
        <Capability Name="internetClient" />
        <rescap:Capability Name="runFullTrust" />
      </Capabilities>

    The application is running fine. But the problem arises when it is submitted to Store. Without the second Application entry in appxmanifest, the package is accepted by Store. But as I require to write two Application entries in same appxmanifest file, the submission process gives the following error and a warning:

    Error: Package acceptance validation error: The package file AppName.appx specifies a headless app. You don't have permission to create a headless app. Please update AppListEntry="none" in the AppxManifest file and also ensure you have the waiver "HeadlessAppBypass" associated to this app.

    Warning: Package acceptance validation warning: The package AppName.appx uses extension windows.startupTask, in namespace http://schemas.microsoft.com/appx/manifest/desktop/windows10, which is not supported on Xbox. If you are offering this app to Xbox customers, you must remove this extension before completing this submission.

    Please help with this submission error. Thanks in advance!

    Monday, May 18, 2020 4:05 PM

All replies

  • Hi Jatin_Sharma,

    >The UWP app required AppServiceConnection from an external app and to do so

    The AppServiceConnection enables app-to-app communication by allowing you to provide services from your Universal Windows app to other Universal Windows app.How did this requirement appear? Or it is your app reqirement?

    Did you package your desktop follow the steps in : Windows Application Packaging Project .

    Best regards

    Daisy  Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, May 19, 2020 2:46 AM
  • Hi Daisy,

    The UWP project which is part of Windows Application Package required to communicate with C++ app and that is achieved by using AppServiceConnection between both apps.

    Yes, I've followed the packaging steps from: Windows Application Packaging Project

    The solution to use two Application Entries was found here: https://stackoverflow.com/a/55099066/2276629

    Tuesday, May 19, 2020 4:43 AM