Share via

GetAppAndOptionalStorePackageUpdatesAsync throwing System.IO.FileNotFoundException

FrankMartini-6093 41 Reputation points
2023-11-07T16:06:41.7166667+00:00

Hi,

I have a similar problem as described in this existing question .

My app is using StoreContext.GetAppAndOptionalStorePackageUpdatesAsync() to check if an update is available in the store.

In general it works as expected. My problem appear as soon as I install an optional package to the app. The optional package itself is not published to the store but installed as side-load package.

Once the package is installed, the GetAppAndOptional....Async() method starts throwing the FileNotFoundException.

From the Store logs I concluded that this is because of the optional package no being published to the store.

Now the question is this:

How can I check that I have updates pending for my main application, if I have at least one optional package installed, which is not published in the store and it NEVER will be.

Thanks

Frank

Developer technologies | Universal Windows Platform (UWP)
Microsoft Partner Center | Other
0 comments No comments

Answer accepted by question author

Junjie Zhu - MSFT 21,746 Reputation points
2023-11-08T09:22:51.24+00:00

Hi @FrankMartini-6093 ,

Welcome to Microsoft Q&A!

How can I check that I have updates pending for my main application, if I have at least one optional package installed, which is not published in the store and it NEVER will be.

This is a system behavior, if you use sideloading packages for your store app, the app will not be authenticated by the store. It is recommended to upload your optional package to the store.

Thank you.


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


0 additional answers

Sort by: Most 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.