Exception whilst trying to open the User picker on Xbox One

Hi there.

I am getting an exception:

Faulted

-2146233088

AggregateException_ctor_DefaultMessage

Access is denied. (Excep_FromHResult 0x80070005)

When trying to open the user picker with the following code

private void DoSignIn()
{
#if ENABLE_WINMD_SUPPORT
var autoPicker = new Windows.System.UserPicker { AllowGuestAccounts = true };
autoPicker.PickSingleUserAsync().AsTask().ContinueWith(
task =>
{
if (task.Status == TaskStatus.RanToCompletion)
{
this.XboxLiveUser.WindowsSystemUser = task.Result;
this.XboxLiveUser.Initialize();
StartCoroutine(SignInCoroutine());
}
else
{
var sb = new System.Text.StringBuilder();
sb.AppendLine(task.Status.ToString());
sb.AppendLine(task.Exception.HResult.ToString());
sb.AppendLine(task.Exception.Message);
sb.AppendLine(task.Exception.InnerException.Message);
throw new Exception(sb.ToString());
}
});
#endif
}

Can anyone shed some light on why this would be?

Cheers
Lindsay

I’m getting the same thing. Was going to post on their Github today at some point.

There sure isn’t a lot of documentation to work with on any of this stuff!

I recommend you edit your post to add code-tags, which makes it easier for people to read then.