Windows 8:在扩展的初始屏幕中使用LiveSDK登录

时间:2012-08-28 20:26:55

标签: c# windows-8 microsoft-metro windows-live

我想在已显示扩展启动画面时签署我的用户。但Live Sdk总是会出现意想不到的错误!

Microsoft.Live.LiveAuthException: An error occurred while performing the operation. Please try again later. ---> System.Exception: Die Anforderung wird nicht unterstützt. (Ausnahme von HRESULT: 0x80070032)
   at Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator.AuthenticateUserAsync(IEnumerable`1 requests, CredentialPromptType credentialPromptType)
   at Microsoft.Live.TailoredAuthClient.<GetAccessToken>d__b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.Live.TailoredAuthClient.<AuthenticateAsync>d__0.MoveNext()
   --- End of inner exception stack trace ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at WitzeWindows8.ExtendedSplashScreen.<DismissedEventHandler>d__13.MoveNext() in c:\Users\Michi\Documents\Visual Studio 2012\Projects\WitzeWindows8\WitzeWindows8\ExtendedSpashScreen.xaml.cs:line 135

1 个答案:

答案 0 :(得分:0)

使用本教程查看如何使用LiveSDK:http://www.silverlightshow.net/items/Using-the-Live-SDK-in-Windows-8-XAML-C-Metro-Applications.aspx

您的扩展启动画面可能是问题的根源,您应该在没有扩展启动画面的情况下尝试它并显示此窗口,如教程中所述: enter image description here