我的.NET Core项目启动时,系统报错:InvalidOperationException: No authenticationScheme was specified, and there was no DefaultChallengeScheme found. The default schemes can be set using either AddAuthentication(string defaultScheme) or AddAuthentication(Action<AuthenticationOptions> configureOptions).
这是啥意思?新手.NET,表示找不到错误原因,是缺少什么吗?
你这个应该是系统中没有添加身份认证方式,但是在代码中又启用了身份验证的属性,可以尝试在Program.cs文件中加入如下这段代码: