“应用程序未正确配置以使用Live Connect服务”时出错。 [英] Error on "The app is not configured correctly to use Live Connect services."
问题描述
Hello All,
我们正在开发一个Windows商店应用名称:"txtOwl.com"。在我们的应用中,我们希望访问用户真实帐户联系人。经过一些搜索,我们发现了一种完成此任务的方法,因为
必须使用Live SDK。
我们已经在网站上注册了我们的应用程序:
https://manage.dev.live.com/Applications/Index 。之后我们尝试
以两种方式在我们的应用程序上实现代码:
1)var uri =" https:// login .live.com / oauth20_authorize.srf英寸;
var authorizeUri = new System.Text.StringBuilder(uri);
authorizeUri.AppendFormat("?client_id = {0}&"," 00000000 ********"); //这是我的客户ID
authorizeUri.AppendFormat(" scope = {0}&"," wl.signin");
authorizeUri.AppendFormat(" response_type = {0}&"," code");
authorizeUri.AppendFormat(" redirect_uri = {0}",(" http://txtowl.com"));
LiveAuthClient auth = new LiveAuthClient(authorizeUri.ToString());
LiveLoginResult loginResult = await auth.LoginAsync(new string [] {" wl.basic"});
if(loginResult!= null)
{
if(loginResult.Status == LiveConnectSessionStatus.Connected)
{
// this.txtStatus.Text ="签到';;
}
}
2)LiveAuthClient authClient = new LiveAuthClient();
LiveLoginResult authResult = await authClient.LoginAsync(new List< string>(){" wl.signin"," wl.basic"," wl.skydrive"});
if(authResult.Status == LiveConnectSessionStatus.Connected)
{
LiveConnectSession mySession = authResult.Session;
}
但我们在两种情况下都会出错:
"该应用程序未正确配置为使用Live Connect服务。要配置您的应用,请按照
上的说明 http://go.microsoft.com/fwlink/? LINKID = 220871 "
在第一种情况下:loginResult.Status == LiveConnectSessionStatus.Connected
并且在第二种情况下:LiveLoginResult authResult = await authClient.LoginAsync(new List< string>(){" wl.signin"," wl.basic"," wl.skydrive"});
所以我们需要所有您的专家帮助找出我们遗失的内容以及我们必须做的事情。我们也从谷歌获得以下链接:
http://blogs.microsoft.co.il/blogs/shair/archive/2012/09/27/using-live-sdk-in-windows-8-c .aspx 用于实现此功能。
但是我们没有在"我的帐户"中获得第2步和第3步。页。
谢谢高级 < span style ="font-family:'Times New Roman',serif; font-size:12pt">
您是否在此阅读了有关配置应用程序的文档?
Hello All,
We are working on a windows store app name: "txtOwl.com". From our app we want to access user live account contacts. After some searching we found a way for this task as we have to use Live SDK.
We have already register our app on the the site: https://manage.dev.live.com/Applications/Index. After that we tried to implement code on our app in 2 ways:
1) var uri = "https://login.live.com/oauth20_authorize.srf"; var authorizeUri = new System.Text.StringBuilder(uri); authorizeUri.AppendFormat("?client_id={0}&", "00000000********"); //This is my Client ID authorizeUri.AppendFormat("scope={0}&", "wl.signin"); authorizeUri.AppendFormat("response_type={0}&", "code"); authorizeUri.AppendFormat("redirect_uri={0}", ("http://txtowl.com")); LiveAuthClient auth = new LiveAuthClient(authorizeUri.ToString()); LiveLoginResult loginResult = await auth.LoginAsync(new string[] { "wl.basic" }); if (loginResult != null) { if (loginResult.Status == LiveConnectSessionStatus.Connected) { // this.txtStatus.Text = "Signed in"; } } 2) LiveAuthClient authClient = new LiveAuthClient(); LiveLoginResult authResult = await authClient.LoginAsync(new List<string>() { "wl.signin", "wl.basic", "wl.skydrive" }); if (authResult.Status == LiveConnectSessionStatus.Connected) { LiveConnectSession mySession = authResult.Session; }
But we are getting an error in both cases:
"The app is not configured correctly to use Live Connect services. To configure your app, please follow the instructions on http://go.microsoft.com/fwlink/?LinkId=220871"
In 1st case line: loginResult.Status == LiveConnectSessionStatus.Connected
and in 2nd case line : LiveLoginResult authResult = await authClient.LoginAsync(new List<string>() { "wl.signin", "wl.basic", "wl.skydrive" });
So we need all of your expert help to find out what are we missing, and what we have to do. We also get from google the below link:
http://blogs.microsoft.co.il/blogs/shair/archive/2012/09/27/using-live-sdk-in-windows-8-c.aspx for implement this feature.
But we are not getting the step 2 and 3 on "my account" page.
Thanks in Advanced
Have you read the documentation on configuring your app here?
这篇关于“应用程序未正确配置以使用Live Connect服务”时出错。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!