代码拉取完成,页面将自动刷新
特别说明:如果 Issue 报告为问题且开发成员回复确认问题之后但三天内都不能得到反馈,则视为无效Issue。
发生了什么?
2.65 版本与2.62版本 的一个改动 【RootServices】 是干什么的,更新之后,IOptionsSnapshot 配置服务解析出问题了。
把RootServices替换成null即可正常读取配置。
1[Ddf.Common.Settings.VarsOptions]' from root provider. at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateResolution(Type serviceType, IServiceScope scope, IServiceScope rootScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Furion.App.GetService(Type type, IServiceProvider serviceProvider) in G:\Fork\Furion\framework\Furion\App\App.cs:line 115 at Furion.App.GetService[TService](IServiceProvider serviceProvider) in G:\Fork\Furion\framework\Furion\App\App.cs:line 104 at Furion.App.GetOptionsSnapshot[TOptions](IServiceProvider serviceProvider) in G:\Fork\Furion\framework\Furion\App\App.cs:line 185 at Ddf.Model.Runtime.Static.Options.get_Vars() in D:\duoduofan\src\Ddf\Ddf.Model\Runtimes\Static.cs:line 18 at Ddf.Model.Entities.Main.Tb_User.get_LevelsBenefits() in D:\duoduofan\src\Ddf\Ddf.Model\Entities\Main\Partials\Tb_User.cs:line 38 at Ddf.Model.Dtos.Account.UserDto..ctor(Tb_User user) in D:\duoduofan\src\Ddf\Ddf.Model\Dtos\Account\UserDto.cs:line 28 at Ddf.Web.Api.Handlers.JwtHandler.CheckAuthorzie(AppAuthorizeRequirement requirement, DefaultHttpContext httpContext) in D:\duoduofan\src\Ddf\Ddf.Web.Api\Handlers\JwtHandler.cs:line 87 at Ddf.Web.Api.Handlers.JwtHandler.PipelineAsync(AuthorizationHandlerContext context, DefaultHttpContext httpContext) in D:\duoduofan\src\Ddf\Ddf.Web.Api\Handlers\JwtHandler.cs:line 49 at Furion.Authorization.AppAuthorizeHandler.AuthorizeHandleAsync(AuthorizationHandlerContext context) in G:\Fork\Furion\framework\Furion\Authorization\Handlers\AppAuthorizeHandler.cs:line 79 at Ddf.Web.Api.Handlers.JwtHandler.HandleAsync(AuthorizationHandlerContext context) in D:\duoduofan\src\Ddf\Ddf.Web.Api\Handlers\JwtHandler.cs:line 34 at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable
1 requirements)什么代码导致?