Exception:“<>c”的类型初始值设定项引发异常。引发类型为“System.OutOfMemoryException”的异常。

报错信息 1
TypeInitializationException: “<>c”的类型初始值设定项引发异常。
--TypeName: <>c
StackTrace:
   在 Ninject.Activation.Caching.Cache.Prune()
   在 Ninject.Infrastructure.Language.ExtensionsForIEnumerableOfT.Map[T](IEnumerable`1 series, Action`1 action)
   在 Ninject.Activation.Caching.GarbageCollectionCachePruner.PruneCacheIfGarbageCollectorHasRun(Object state)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.TimerQueueTimer.CallCallback()
   在 System.Threading.TimerQueueTimer.Fire()
   在 System.Threading.TimerQueue.FireNextTimers()

OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。
StackTrace:
   在 Ninject.Activation.Caching.Cache.<>c..cctor()

版本:1.43.57 2025-04-05 20:48 Microsoft Windows NT 10.0.19043.0