locked
CurrentApp.appId is Empty Guid RRS feed

  • Question

  • Here's a weird one:

    I have an app in the store, and I'm unable to retrieve product listing using CurrentApp.loadListingInformationAsync.  The fail callback receives a WinRTError:

    WinRTError: Unknown runtime error
       at getResultsOfAsyncOp (Function code:226:5)
       at completed (Function code:299:21)

    Looking into this further, I think something is preventing CurrentApp from initializing properly (even though the app itself starts and runs just fine).   Windows.ApplicationModel.Store.CurrentApp.appId contains an empty guid (i.e, 00000000-0000-0000-0000-000000000000).

    I have other apps in the store, and they work just fine with the same loadListingInformationAsync code.  I've tried uninstalling the app from the Start Screen with no success.

    Any ideas?  I'm about to just create the project one file at a time to see if it's related to the code instead of the OS.

    Wednesday, May 15, 2013 11:17 AM

Answers

  • Here's how I managed to fix:

    1. Uninstall from the Start Screen (gets rid of the deployed development version)

    2. Install app from the Store app

    3. Open project in Visual Studio and run.  

    Apparently, some meta data got screwed up somehow, but installing from the Store was sufficient to restore it, allowing the CurrentApp object to properly initialize.

    • Marked as answer by JasonFollas Thursday, May 16, 2013 1:06 AM
    Thursday, May 16, 2013 1:06 AM