locked
LiveSDK don't work on Windows (Phone) 8.1?

    Question

  • I have download the version 5.6 of LiveSDK.

    But this simple program don't work:

    bool connected = false; try { var authClient = new LiveAuthClient(); LiveLoginResult result = await authClient.LoginAsync(new string[] { "wl.signin", "wl.skydrive" }); if (result.Status == LiveConnectSessionStatus.Connected) { connected = true; var connectClient = new LiveConnectClient(result.Session); var meResult = await connectClient.GetAsync("me"); dynamic meData = meResult.Result; } } catch (LiveAuthException ex) { // Display an error message. } catch (LiveConnectException ex) { // Display another error message. }

    catch (Exception ex)
    {

    }

    I catch a generic Exception, obtain this exception message:

    Object reference not set to an istance of an object

    in row :

     LiveLoginResult result = await authClient.LoginAsync(new string[] { "wl.signin", "wl.skydrive" });

    but authClient is not null. What is wrong?


    CP http://www.fjmsoftware.altervista.org

    Saturday, June 28, 2014 11:07 AM

Answers

  • Hi CLROS,

    I think it is a common issue, you have to register your app at the store dashboard. You can do it from VS go to Project -> Store -> Associate App with the Store.

    And if you still have question for LiveSDK, there is a forum for you: http://social.msdn.microsoft.com/forums/onedrive/en-US/home?forum=messengerconnect. Where you can find experts for your specific questions.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by CLROS Monday, June 30, 2014 3:45 PM
    Monday, June 30, 2014 1:32 AM
    Moderator