首页新闻找找看学习计划

Abp中添加redis,前端调用AbpUserConfiguration/GetAll出现错误

0
悬赏园豆:100 [已关闭问题] 关闭于 2019-09-12 15:49

用的abp+vue,在abp中添加了Abp.RedisCache之后,使用swagger 后端正常运行,接口可以访问, 前端登录的时候
调用/AbpUserConfiguration/GetAll 出现错误。错误日志LOG中
Mvc.ExceptionHandling.AbpExceptionFilter - Method not found: 'Abp.Runtime.Caching.ICache Abp.Runtime.Caching.ICacheManager.GetCache(System.String)'.
System.MissingMethodException: Method not found: 'Abp.Runtime.Caching.ICache Abp.Runtime.Caching.ICacheManager.GetCache(System.String)'.
at Abp.Localization.MultiTenantLocalizationDictionaryCacheHelper.GetMultiTenantLocalizationDictionaryCache(ICacheManager cacheManager)
at Abp.Localization.MultiTenantLocalizationDictionary.GetAllStrings(Nullable`1 tenantId)
at Castle.Proxies.Invocations.ILocalizationDictionary_GetAllStrings.InvokeMethodOnTarget()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.MultiTenantLocalizationDictionaryProxy.GetAllStrings()
at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetAllStrings(CultureInfo culture, Boolean includeDefaults) in D:\Github\aspnetboilerplate\src\Abp\Localization\Dictionaries\DictionaryBasedLocalizationSource.cs:line 152
at Abp.Web.Configuration.AbpUserConfigurationBuilder.GetUserLocalizationConfig() in D:\Github\aspnetboilerplate\src\Abp.Web.Common\Web\Configuration\AbpUserConfigurationBuilder.cs:line 144
at Abp.Web.Configuration.AbpUserConfigurationBuilder.GetAll() in D:\Github\aspnetboilerplate\src\Abp.Web.Common\Web\Configuration\AbpUserConfigurationBuilder.cs:line 77
at Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll() in D:\Github\aspnetboilerplate\src\Abp.AspNetCore\AspNetCore\Mvc\Controllers\AbpUserConfigurationController.cs:line 18
at lambda_method(Closure , Object )
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()

_Nevers的主页 _Nevers | 初学一级 | 园豆:186
提问于:2019-09-12 09:52
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册