An application requesting authentication tokens is either disabled or misconfigured

I tried to connect to microsoft in my Windows 10 UWP application.

var authenticator = new Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator();
var serviceTicketRequest = new Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest("wl.basic", "DELEGATION");

System.Diagnostics.Debug.WriteLine("Signing in...");

var authResult = await authenticator.AuthenticateUserAsync(serviceTicketRequest);

This was the code I tried. I got an exception in the authenticator.AuthenticateUserAsyncexception was

An exception was thrown: "System.Exception" in the mscorlib.ni.dll file

Additional information: an application requesting authentication tokens is either disabled or improperly configured. (Exception from HRESULT: 0x80860003) Does anyone have an idea why this is happening?

+4
source share
1 answer

, Windows Store.

Windows Store, Visual Studio:

  • ... enter image description here
  • , Windows Store, Microsoft. Windows Store, Windows Store, , .
  • , Visual Studio. , , Windows Store.
  • , , .
  • , , .

Microsoft.

+8

All Articles