Windows Phone 中的 Azure Active Directory 身份验证失败

2024-04-18

我正在遵循 Windows Phone 身份验证教程将身份验证添加到您的移动服务应用程序 http://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-phone-get-started-users/。我选择使用Azure Active Directory方式进行身份验证。但问题是:它总是失败并显示远程过程调用失败。 (HRESULT 异常:0x800706BE)在下面的代码中

    protected override async void OnNavigatedTo(NavigationEventArgs e)
    {

        await Authenticate();//here throws System.Exception in mscorlib.ni.dll
        await RefreshMissionTable();
    }

我确保我的 Azure 设置没有任何问题。奇怪的是,当我选择Windows Phone Universal App Sample,并再次执行相同的步骤时,它可以在Windows 8.1模拟器中运行!但仍然无法在Windows Phone 8.1模拟器中工作。并且断点停留在这里

#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
        UnhandledException += (sender, e) =>
        {
            if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
        };
#endif
    }
}

}


这可能与 Windows Phone 8.1 上的 WebAuthenticationBroker 的一个已知问题有关:在加载应用程序的完整 UX 之前无法调用它。请查看此线程,了解问题的描述和建议的解决方法:https://social.msdn.microsoft.com/Forums/vstudio/en-US/95c6569e-2fa2-43c8-af71-939e006a9b27/mobile-services-loginasync-remote-procedure-call-failed-hresult-0x800706be?forum=天蓝色移动 https://social.msdn.microsoft.com/Forums/vstudio/en-US/95c6569e-2fa2-43c8-af71-939e006a9b27/mobile-services-loginasync-remote-procedure-call-failed-hresult-0x800706be?forum=azuremobile HTH V.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Windows Phone 中的 Azure Active Directory 身份验证失败 的相关文章

随机推荐