locked
Exception occurred while calling LoginAsync RRS feed

  • Question

  • My code is as follows.
    LCAuth = new LiveAuthClient();
    LiveLoginResult loginResult = await LCAuth.LoginAsync(new string[] { "wl.basic", "wl.skydrive_update" });

    It do work in windows 8.1 App. But when I port this code to windows 10 UWP App, a NullReferenceException occurred while calling LoginAsync function. I don't know why.

    In addition, I would like to remind that I have selected "Internet(client)" capabilities in both app.



    • Edited by 缺氧 Wednesday, August 19, 2015 2:18 PM
    Wednesday, August 19, 2015 2:17 PM

Answers

  • We need to wait for the next version of Live SDK. Or try to use other solution to link to Live API, for example, via RESTful and use loval HTTPClient code: https://dev.onedrive.com/README.htm

    Bob Bao

    Do you still use the same Windows 8 LockScreen always? Download Chameleon Win8 App quickly, that changes your LockScreen constantly.
    你是否还在看着一成不变的Windows 8锁屏而烦恼,赶紧下载这个 百变锁屏 应用,让你的锁屏不断地变化起来。

    • Marked as answer by 缺氧 Monday, August 31, 2015 2:56 PM
    Monday, August 24, 2015 6:22 AM

All replies

  • I found a page reference as follows

    Universal Windows Plateform and Live SDK

    It seems that there are some compatible problems if live sdk 5.6 is used in UWP.

    How to solve this problem?


    • Edited by 缺氧 Thursday, August 20, 2015 8:03 AM
    Thursday, August 20, 2015 8:02 AM
  • We need to wait for the next version of Live SDK. Or try to use other solution to link to Live API, for example, via RESTful and use loval HTTPClient code: https://dev.onedrive.com/README.htm

    Bob Bao

    Do you still use the same Windows 8 LockScreen always? Download Chameleon Win8 App quickly, that changes your LockScreen constantly.
    你是否还在看着一成不变的Windows 8锁屏而烦恼,赶紧下载这个 百变锁屏 应用,让你的锁屏不断地变化起来。

    • Marked as answer by 缺氧 Monday, August 31, 2015 2:56 PM
    Monday, August 24, 2015 6:22 AM