Share via

Error APPX1204 Creating App Package for upload to MS Store

WoodManEXP 40 Reputation points
2026-04-23T12:47:35.76+00:00

This is happening with Visual Studio Insiders [11709.129] with a UWP XBox targeted app. The app has been successfully side-loaded and tested on Dev-mode XBox. Creating the App Package produces this error:

Failed to sign <filename.msix>. SignTool Error: An unexpected internal error has occurred.

There are several mentions of this error in various forums, but my efforts are not finding a resolution. The Project has been associated with an app in the store. Details in the Package.appxmanifest look to match details in the Microsoft Partner Center Product Identity page.

This may be related to information in the build generated certificate not matching info in the .appxmainifest? Thoughts and suggestions about how to approach resolving this are appreciated!

TY

Developer technologies | Universal Windows Platform (UWP)

Answer accepted by question author

Danny Nguyen (WICLOUD CORPORATION) 6,945 Reputation points Microsoft External Staff Moderator
2026-04-24T10:21:58.93+00:00

Hi @WoodManEXP

APPX0102/APPX0107 mean the project is still referencing a signing cert thumbprint that either isn’t in the cert store anymore or isn’t usable for signing (most commonly: missing private key). The two .cer files in the output won’t help unless the corresponding cert+private key is installed and selected.

Can you try the following steps:

  • Recreate/install a test signing certificate (with private key) and then reselect it for the project; this MSIX doc walks through the cert creation/install steps: https://learn.microsoft.com/en-us/windows/msix/package/create-certificate-package-signing
  • If APPX0102 persists, update/remove the stale <PackageCertificateThumbprint> in the .csproj so it stops referencing the deleted ECBC11… cert.
  • Confirm in certmgr.msc (Current User → Personal) that the selected cert shows “You have a private key…”—a .cer alone will typically produce APPX0107.
  • Since you’re on VS Insiders, try the same packaging step in stable VS once to rule out a tooling regression in SignTool/cert lookup.

Hope to hear the results from you. I would greatly appreciate it if you could share your feedback by interacting with the system or leaving a comment.

Thank you.

Was this answer helpful?

3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. AI answer

    2026-04-23T12:47:48.5566667+00:00

    APPX1204 with a generic SignTool Error: An unexpected internal error has occurred when creating a Store package is commonly caused by a mismatch between the package manifest identity and the signing certificate, or by an issue with the certificate itself.

    To systematically resolve it:

    1. Verify the certificate subject and manifest publisher match exactly
      1. In a PowerShell window, get the subject from the certificate actually used to sign the package (replace THUMBPRINT with the certificate thumbprint Visual Studio is using):
              (Get-Item Cert:\CurrentUser\My\THUMBPRINT).Subject
        
        Example output:
              CN=Contoso, C=US
        
      2. Open Package.appxmanifest in XML view and check the <Identity> element:
              <Identity Name="YourAppName"
                        Publisher="CN=Contoso, C=US"
                        ... />
        
      3. Ensure the Publisher attribute matches the certificate subject string exactly, including commas, spaces, and ordering.
      4. If using Azure Artifact Signing (Trusted Signing), ensure the Publisher value matches the verified identity shown in the certificate profile’s Subject name field in the Azure portal.
    2. Rebuild and repackage
      1. After correcting the manifest, clean and rebuild the solution.
      2. Recreate the Store package so it is rebuilt with the corrected manifest.
      3. If packaging manually, repackage with MakeAppx.exe and re-sign using the corrected certificate.
    3. Confirm Partner Center identity alignment
      1. In Partner Center, open the app’s App identity page.
      2. Confirm that the Package/Identity/Name and publisher information shown there match the Name and Publisher in Package.appxmanifest.
      3. For Xbox UWP, also ensure the Package Identity (PFN) in the manifest matches what is configured in Partner Center.

    If the manifest identity and certificate subject are aligned and the PFN/App ID in Partner Center are correct, the APPX1204/SignTool error caused by signing/identity mismatch should be resolved.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.