question

creatrixhava avatar image
creatrixhava asked

KeyNotFoundException on test in my Windows Phone

1 - I am to getting the virtualCurrency of user with:

GetUserCombinedInfoRequest userRequest = new GetUserCombinedInfoRequest(); PlayFabClientAPI.GetUserCombinedInfo (userRequest, (userResult) => {

int initialCoins = (int)userResult.VirtualCurrency["fc"];

}, PlayFabErrorHandler.HandlePlayFabError);

2 - but I'm having an error when building on Visual Studio 2013 to test in my Windows Phone:

System.Collections.Generic.KeyNotFoundException.

3 - And when i run on Unity Editor works fine.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

That would seem to indicate something's out of sync in your VS project. What version of Unity are you using, and what version of the PlayFab Unity SDK? What happens if you reimport your project?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

creatrixhava avatar image creatrixhava commented ·

Hi Brendan, I updated my Playfab Unity SDK and this solve my problem, thank you for listening.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.