locked
[WP8.1] Store (IAP) errors RRS feed

  • Question

  • Hi!
    Can I understand from HResult what type of the exception, why it was thrown?
    For example, when I canceled purchase from store - I catch COMException with HResult 0x80004005 (-2147467259) and I can understand that operation was cancelled by user. I want to know when purchase failed because user hasn't internet connection - but when I try buy item (IAP) without internet connection I catch COMException with same HResult 0x80004005...
    Of course I can check internet connection before purchase but it is extra (unnecessary) code I think.


    Wednesday, June 10, 2015 7:58 AM

Answers

  • Hi Drleho,

    HResult: 0x80004005 means unspecified error. I found common HResult Values on the following link. https://msdn.microsoft.com/en-us/library/windows/desktop/aa378137(v=vs.85).aspx.

    It would better if you can check the network connection before calling IAP, at least we can avoid crashing caused by this error.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 11, 2015 9:44 AM