Reputation: 5944
I created app for uwp (win 10 desktop). I could not build package for store. I received an error: it is necessary to update the certificate. I have updated certificate and build my package. But when I upload the package to the store, I get the error:
Invalid package family name: MyPackage.xxxx_xxxx (expected: MyPackage.yyyy_yyyyy)
Invalid package publisher name: CN=XYX (expected: CN=xxx-xxxx-xxx-xxxx)
But I opened my app manifest and I see:
Published: CN=xxx-xxxx-xxx-xxxx
Package Family Name: MyPackage.yyyy_yyyyy
It is what expected. In "open sertificate" I see : Publisher -XYX.
How do I fix it all? Any ideas?
Upvotes: 23
Views: 7678
Reputation: 127
This issue still exists even in Visual Studio 2022. I have been trying to complete my .net MAUI app and the "Store Association" has been my biggest headache and obstacle. No matter how many times i did the "Store Association" i could never get it to stay associated. All my problems for the last 6 weeks have been caused by the CN on the certificate being wrong. And i didnt realize it until i decided to upload to the store to see if that would help and i got the error mentioned.
Upvotes: 2
Reputation: 3840
For us, the problem was that we tried to publish the app before associating it with a submission. The fix was the following:
Upvotes: 0
Reputation: 3067
Problem seems that it defaults to developer name instead of using the original GUID
Upvotes: 22
Reputation: 5944
I solved this issue. I made a mistake when creating new certificate. It must be so:
Upvotes: 31
Reputation: 662
I found this MSDN blog: https://blogs.msdn.microsoft.com/jamiedalton/2017/01/13/windows-store-error-updating-package-invalid-package-family-name/
The blog states that you should associate your App to the Store App using Visual Studio.
This seems to be the right answer.
Upvotes: 7