Note that there are some explanatory texts on larger screens.

plurals
  1. POAzure Mobile Services app crashes with message- The app is not configured correctly to use Live Connect services
    text
    copied!<p>*<strong>I am developing an store app .The ClientID and Client Secret on manage.dev.live.com have been copied to "identity" tab of my mobile services on Azure portal and the redirect domain on both the manage.dev and Azure portal do match. Also i have associated my store application with the app in manage.dev.live.com from inside VS . But still i am receiving an error in my app.</strong>*FYI i am using different live accounts for dev.live.com and for Azure Portal , i dont know if that has any effect. On putting breakpoint , the error occurs at following line -</p> <pre><code> LiveLoginResult result = await liveidclient.LoginAsync(new[] { "wl.basic" }); </code></pre> <p>BTW , i do get the login prompt to enter username and passwd .After clicking OK ,the app crashes with message -The app is not configured correctly to use Live Connect services. To configure your app, please follow the instructions on </p> <p>Hi , this is my exception details- </p> <p>Microsoft.Live.LiveAuthException was unhandled HResult=-2146233088 Message=The app is not configured correctly to use Live Connect services. To configure your app, please follow the instructions on <a href="http://go.microsoft.com/fwlink/?LinkId=220871" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=220871</a>. Source=Microsoft.Live ErrorCode=invalid_request StackTrace: at Microsoft.Live.LiveAuthClient.d_<em>4.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<code>1.GetResult() at DeltaVMobile.MainPage.&lt;Authenticate&gt;d__4.MoveNext() in MainPage.xaml.cs:line 99 --- 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 DeltaVMobile.MainPage.&lt;OnNavigatedTo&gt;d__0.MoveNext() in MainPage.xaml.cs:line 75 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.&lt;ThrowAsync&gt;b__0(Object state) at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() InnerException: HResult=-2138701823 Message=Authentication target is invalid or not configured correctly. (Exception from HRESULT: 0x80860001) Source=mscorlib StackTrace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter</code>1.GetResult() at Microsoft.Live.TailoredAuthClient.d</em>_12.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.d__0.MoveNext() InnerException: </p> <p>The following is the code i am using </p> <pre><code>LiveAuthClient liveidclient = new LiveAuthClient("https://deltavauth.azure-mobile.net/"); while (session == null) { if (liveidclient.CanLogout) { liveidclient.Logout(); } LiveLoginResult result = await liveidclient.LoginAsync(new[] { "wl.basic" }); if (result.Status == LiveConnectSessionStatus.Connected) { session = result.Session; LiveConnectClient client = new LiveConnectClient(result.Session); LiveOperationResult mresult = await client.GetAsync("me"); MobileServiceUser loginresult = await App.MobileService.LoginWithMicrosoftAccountAsync(result.Session.AuthenticationToken); string title = string.Format("Welcome {0} !", mresult.Result["first_name"]); var message = string.Format("You are now logged in -{0}", loginresult.UserId); var dialog = new MessageDialog(title); dialog.Commands.Add(new UICommand("OK")); await dialog.ShowAsync(); } else { session = null; var dialog = new MessageDialog("You must login to use DeltaV", "Login Required"); dialog.Commands.Add(new UICommand("OK")); await dialog.ShowAsync(); } </code></pre> <p>FYI , this is the URL for the tutorial -<a href="http://www.windowsazure.com/en-us/develop/mobile/tutorials/single-sign-on-windows-8-dotnet/" rel="nofollow">http://www.windowsazure.com/en-us/develop/mobile/tutorials/single-sign-on-windows-8-dotnet/</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload