Hi Carl,
Thanks for your attention. I finally found the problem. I was using the LoginAsync method in a dataservice class that was not running in the UI thread. Placing the code inside the RunAsync forces it to run in the UI thread and now all is working
fine. What is curious is that in debug mode it was working fine.
await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
async () => {
authResult = await authClient.LoginAsync(new List<string>() { "wl.signin", "wl.basic", "wl.skydrive", "wl.skydrive_update", "wl.offline_access" });
liveConnectClient = new LiveConnectClient(authResult.Session);
liveConnectAccessToken = authResult.Session.AccessToken;
});
NFG
NFG