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.

2 Answers 2

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.

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.

1
  • no, just using the windows universal app templates. with compilation set to any cpu.
    – Yohann
    Jun 9, 2015 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.