我们的.Net 4.0应用程序在VS托管时正常运行,在加载时(执行后不到1秒)总是崩溃,而不是调试(调试和发布二进制文件)。
该应用程序包含5个库(所有文件都带有.Net 4.0)+ NHibernate依赖项。
它甚至没有触发UnhandledException事件,它只是使用OutOfMemoryException
立即崩溃(我只能通过Windows事件查看器看到它)。
事件查看器告诉我kernelbase.dll
有一个OutOfMemoryException
,并且
Fuslogvw.exe
告诉我System.Core
无法加载:
*** Input Assembly Binder Log (6/27/2016 @ 15:41:54) ***
The operation failed.
Result of the Association: hr = 0x8007000e. Insufficient storage space to complete the operation.
Assembly Manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable C:\Users\User\Source\Manager\MySoftware\MySoftware.WPF.App\bin\Release\MySoftware.WPF.App.exe
---Follows a detailed log of errors.
=== Pre-Association state information ===
LOG: DisplayName = System.Core, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///C:/Users/User/Source/Manager/MySoftware/MySoftware.WPF.App/bin/Release/
LOG: initial PrivatePath = NULL
Logging: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MySoftware.WPF.App.exe
Calling assembly: MySoftware.WPF. App, Version 1.0.0.0, Culture = neutral, PublicKeyToken = null.
===
LOG: this Association starts at the default load context.
LOG: using application configuration file: C:\Users\User\Source\Manager\MySoftware\MySoftware.WPF.App\bin\Release\MySoftware.WPF.App.exe.Config
LOG: using host configuration file:
LOG: using machine configuration file C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: post policy reference: System.Core, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
LOG: assembly located by searching on GAC.
ERR: unrecoverable error during pre download verification (hr = 0x8007000e).
我有4GB的RAM占60%,所以也许这不是问题。你能给我一个提示在哪里看吗?