none
This problem cannot be converted from 'string' to 'Newtonsoft.Json.Linq.JObject' UWP, C# RRS feed

  • Question

  • Hello:

    the problem I have for MSA authentication for Mobile App Backend Azure  (UWP , C-#) is that the url_shema_app tells me error cannot be converted from 'string' to 'Newtonsoft.Json.Linq.JObject'
    which I could let her loose. I'm using WTS

    private async Task<bool> AuthenticateAsync()
            {
                string message;
                bool success = false;
    
                try
                {
                    //Sign in using MicrosoftAccount
    
                    user = await App.MobileService
                        .LoginAsync(MobileServiceAuthenticationProvider.MicrosoftAccount, "{url_shema_app}");
                    message =
                        string.Format("You are now signed in - {0}", user.UserId);
                   
    
                    success = true;
                }
                catch(InvalidOperationException)
                {
                    message = "You must log in. Login Required";
    
                }
    
                var dlg = new MessageDialog(message);
                dlg.Commands.Add(new UICommand("ok"));
                await dlg.ShowAsync();
                return success;
    
            }


    • Edited by Javier Ra Saturday, September 21, 2019 5:05 PM error
    Saturday, September 21, 2019 5:04 PM

All replies