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

报错信息 1
TypeInitializationException: “<>c”的类型初始值设定项引发异常。
--TypeName: <>c
StackTrace:
   在 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.GarbageCollectionCachePruner.<>c..cctor()

版本:1.44.10 2025-05-15 08:27 Microsoft Windows NT 10.0.26100.0