ARTICLE AD BOX
I have problem in my Blazor Web App on .NET 9.0:
Microsoft.AspNetCore.Authentication.AuthenticationFailureException: An error was encountered while handling the remote login.
System.MissingMethodException: Method not found: 'Void Microsoft.IdentityModel.Tokens.TokenValidationResult..ctor(Microsoft.IdentityModel.Tokens.SecurityToken, Microsoft.IdentityModel.Tokens.TokenHandler, Microsoft.IdentityModel.Tokens.TokenValidationParameters, System.String)'.
at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.ValidateTokenUsingHandlerAsync(String idToken, AuthenticationProperties properties, TokenValidationParameters validationParameters)
at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.aandleRemoteAuthenticateAsync()
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)x
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
References:
Include="HtmlAgilityPack" Version="1.12.1" Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.10" Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.10" Include="Microsoft.Extensions.Localization" Version="9.0.10" Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.13.1" Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.13.1"