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()