You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.TypeInitializationException: The type initializer for 'Nested' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Nested' threw an exception.
---> Senparc.CO2NET.Exceptions.CacheException: IMemoryCache 依赖注入未设置!如果您使用的是本地缓存,请确保在 Startup.cs 中执行了 services.AddMemoryCache() 方法!
at Senparc.CO2NET.Cache.LocalObjectCacheHelper.get_LocalObjectCache()
at Senparc.CO2NET.Cache.LocalObjectCacheStrategy..ctor()
at Senparc.CO2NET.Cache.LocalObjectCacheStrategy.Nested..cctor()
The text was updated successfully, but these errors were encountered:
已经注册 services.AddMemoryCache();
启动还是报错:Senparc.CO2NET.Exceptions.CacheException: IMemoryCache 依赖注入未设置!如果您使用的是本地缓存,请确保在 Startup.cs 中执行了 services.AddMemoryCache() 方法!
System.TypeInitializationException: The type initializer for 'Nested' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Nested' threw an exception.
---> Senparc.CO2NET.Exceptions.CacheException: IMemoryCache 依赖注入未设置!如果您使用的是本地缓存,请确保在 Startup.cs 中执行了 services.AddMemoryCache() 方法!
at Senparc.CO2NET.Cache.LocalObjectCacheHelper.get_LocalObjectCache()
at Senparc.CO2NET.Cache.LocalObjectCacheStrategy..ctor()
at Senparc.CO2NET.Cache.LocalObjectCacheStrategy.Nested..cctor()
The text was updated successfully, but these errors were encountered: