致命错误:System.OutOfMemoryException:类型' System.OutOfMemoryException'

时间:2017-12-24 13:37:19

标签: aspnetboilerplate

有时我们会收到错误System.OutOfMemoryException。完整的错误是

  

致命2017-12-24 17:01:45,360 [39] Abp.AbpBootstrapper - System.OutOfMemoryException:类型' System.OutOfMemoryException'的异常被扔了。      在System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule,IRuntimeMethodInfo pCtor,Byte ** ppBlob,Byte * pEndBlob,Int32 * pcNamedArgs)      在System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule模块,IRuntimeMethodInfo ctor,IntPtr& blob,IntPtr blobEnd,Int32& namedArgs)      在System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule,Int32 decoratedMetadataToken,Int32 pcaCount,RuntimeType attributeFilterType,Boolean mustBeInheritable,IList derivedAttributes,Boolean isDecoratedTargetSecurityTransparent)      在System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType类型,RuntimeType caType,布尔继承)      在System.RuntimeType.GetCustomAttributes(Type attributeType,Boolean inherit)      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModule.cs中的Abp.Modules.AbpModule.FindDependedModuleTypes(Type moduleType):第108行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModuleManager.cs中的Abp.Modules.AbpModule.AddModuleAndDependenciesRecursively(List 1 modules, Type module) in D:\Github\aspnetboilerplate\src\Abp\Modules\AbpModule.cs:line 143 at Abp.Modules.AbpModule.FindDependedModuleTypesRecursivelyIncludingGivenModule(Type moduleType) in D:\Github\aspnetboilerplate\src\Abp\Modules\AbpModule.cs:line 124 at Abp.Modules.AbpModuleManager.FindAllModuleTypes(List 1& plugInModuleTypes):第86行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModuleManager.cs中的Abp.Modules.AbpModuleManager.LoadAllModules():第67行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModuleManager.cs中的Abp.Modules.AbpModuleManager.Initialize(输入startupModule):第40行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ AbpBootstrapper.cs中的Abp.AbpBootstrapper.Initialize():第146行   System.OutOfMemoryException:类型' System.OutOfMemoryException'的异常。被扔了。      在System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule,IRuntimeMethodInfo pCtor,Byte ** ppBlob,Byte * pEndBlob,Int32 * pcNamedArgs)      在System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule模块,IRuntimeMethodInfo ctor,IntPtr& blob,IntPtr blobEnd,Int32& namedArgs)      在System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule,Int32 decoratedMetadataToken,Int32 pcaCount,RuntimeType attributeFilterType,Boolean mustBeInheritable,IList derivedAttributes,Boolean isDecoratedTargetSecurityTransparent)      在System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType类型,RuntimeType caType,布尔继承)      在System.RuntimeType.GetCustomAttributes(Type attributeType,Boolean inherit)      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModule.cs中的Abp.Modules.AbpModule.FindDependedModuleTypes(Type moduleType):第108行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModuleManager.cs中的Abp.Modules.AbpModule.AddModuleAndDependenciesRecursively(List 1 modules, Type module) in D:\Github\aspnetboilerplate\src\Abp\Modules\AbpModule.cs:line 143 at Abp.Modules.AbpModule.FindDependedModuleTypesRecursivelyIncludingGivenModule(Type moduleType) in D:\Github\aspnetboilerplate\src\Abp\Modules\AbpModule.cs:line 124 at Abp.Modules.AbpModuleManager.FindAllModuleTypes(List 1& plugInModuleTypes):第86行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModuleManager.cs中的Abp.Modules.AbpModuleManager.LoadAllModules():第67行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ Modules \ AbpModuleManager.cs中的Abp.Modules.AbpModuleManager.Initialize(输入startupModule):第40行      在D:\ Github \ aspnetboilerplate \ src \ Abp \ AbpBootstrapper.cs:第146行的Abp.AbpBootstrapper.Initialize()中

我们使用ASPNetBoilerplate,AngularJs和实体框架

1 个答案:

答案 0 :(得分:0)

看起来你错误配置了ABP依赖项。 FindDependedModuleTypesRecursivelyIncludingGivenModule()方法递归加载依赖模块,它可能会进入无限循环。检查所有 [DependsOn(typeof(XXXX))] 属性!