登录skydrive时出现白屏 [英] White screen while login in to skydrive

查看:73
本文介绍了登录skydrive时出现白屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,



我在windowsphone 8中使用skydrive完成了一个应用程序LIveConnect,因为我使用此代码登录



如下所示

  private     LiveAuthClient   authClient  ;  



 private static readonly string [] scopes = 
new string [] {
" ; wl.basic",
" wl.offline_access",
" wl.skydrive_update"};

public SkyDriveLiveLoginPage()
{
InitializeComponent();
this.authClient = new LiveAuthClient(" MyclientId"," https://oauth.live.com/desktop");
this.authClient.InitializeCompleted + = authClient_InitializeCompleted;
this.authClient.InitializeAsync();
}

void authClient_InitializeCompleted(object sender,LoginCompletedEventArgs e)
{
this.authClient.LoginCompleted + = authClient_LoginCompleted ;
this.authClient.LoginAsync(scopes);
}
private void authClient_LoginCompleted(object sender,LoginCompletedEventArgs e)
{
}



 我第一次获得白屏,剩余时间登录良好



  authClient_LoginCompleted   not   fired   for  第一次 





任何人都可以帮助我。

解决方案

您是否尝试过文档中的示例代码?


http://msdn.microsoft.com/en-us/library/live/hh826550.aspx


hi all,

I have done an application in windowsphone 8 using skydrive LIveConnect,for that i am login using this code

as shown below

private LiveAuthClient authClient;

 private static readonly string[] scopes =
            new string[] { 
            "wl.basic", 
            "wl.offline_access",
            "wl.skydrive_update" };

public SkyDriveLiveLoginPage()
        {
            InitializeComponent();
            this.authClient = new LiveAuthClient("MyclientId", "https://oauth.live.com/desktop");
            this.authClient.InitializeCompleted += authClient_InitializeCompleted;
            this.authClient.InitializeAsync();
         }
 
void authClient_InitializeCompleted(object sender, LoginCompletedEventArgs e)
        {
            this.authClient.LoginCompleted += authClient_LoginCompleted;
            this.authClient.LoginAsync(scopes);
        }
 private void authClient_LoginCompleted(object sender, LoginCompletedEventArgs e)
        {
        }

 for first time i am getting white screen and remaining times it is login well

(

authClient_LoginCompleted was not fired for first time

)

can any one please help me.

解决方案

Have you tried the sample code in the documentation?

http://msdn.microsoft.com/en-us/library/live/hh826550.aspx


这篇关于登录skydrive时出现白屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆