我正在尝试使用ASP.NET Core3.1添加多个身份验证方案,在尝试向服务器发送一个持有者令牌时遇到了这个问题: System.InvalidOperationException: No authenticationSchemewas specified, and there was no DefaultChallengeScheme found.;
options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme</e
它是一个ASP.NET核心5 WebAPI,因此我将ConfigureServices代码更改为以下代码:
services.AddAuthentication(OpenIdConnectDefaults.AuthenticationSchemeSystem.InvalidOperationException: No authenticationScheme was specified, and there was no DefaultChallengeSchemeMicrosoft.AspNetCore.Diagnost
System.InvalidOperationException: The given value of type SqlDecimal from the ---> System.InvalidOperationExceptiongiven value of type SqlDecimal from
the data source cannot be