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