OneDrive SDK & background task WP8.1

2

I'm trying to use the OneDrive SDK in a background task (Windows Runtime Component) but I get an error when I try to authenticate:

var result = await Authenticator.AuthenticateUserAsync(new[] { serviceTicketRequest }, CredentialPromptType.PromptIfNeeded)

Error I get: The request is not supported. (Exception from HRESULT: 0x80070032)

I have posted this query on the MSDN forum here.

c#
windows-phone-8
onedrive
background-task
asked on Stack Overflow Jun 9, 2015 by Yohann • edited Apr 1, 2016 by Heinrich Ulbricht

2 Answers

1

The problem is that I had to record the access token and use it afterwards for next calls. But it is granted only for 1 hour.

answered on Stack Overflow Jun 30, 2015 by Yohann • edited Apr 1, 2016 by Heinrich Ulbricht
0

Are you using Xamarin by any chance? In that case the crasch is the result of a bug when trying to debug a 64 bit process.

answered on Stack Overflow Jun 9, 2015 by Nolan

User contributions licensed under CC BY-SA 3.0