StoreContext.GetStoreProductsAsync() error: "Exception from HRESULT: 0x80072F06"

Hong 1,046 Reputation points
2021-02-19T23:48:49.83+00:00
StoreContext storeContext = StoreContext.GetDefault();
string[] productKinds = { "Durable" };
List<String> filterList = new List<string>(productKinds);
StoreProductQueryResult queryResult = await storeContext.GetAssociatedStoreProductsAsync(filterList);

The above code works most of the time. The analytics of an app shows it fails sometimes with different users. queryResult.ExtendedError.Message is something like the following:

Exception from HRESULT: 0x80072F06
Exception from HRESULT: 0x80072EE2

Could anyone shed some light on the meaning of these errors? What should we suggest users do?

Universal Windows Platform (UWP)
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
876 questions
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 31,826 Reputation points Microsoft Vendor
    2021-02-22T06:11:00.82+00:00

    Hello,

    Welcome to Microsoft Q&A!

    • HRESULT: 0x80072F06 means that The host name in the certificate is invalid or does not match
    • HRESULT: 0x80072EE2 means that The operation timed out

    All of them are related to the network or the server-side. You could suggest the customer check their network first or try it later.

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful