我有一个标准的WinForms应用程序,在大多数计算机上运行。但是在安装了.NET 4(完整版本)的2003服务器上无法运行。
事件查看器显示:
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1026
Date: 4/01/2012
Time: 10:07:37 AM
User: N/A
Computer: DRACO
Description:
Application: start.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception
Info: System.TypeInitializationException
Stack:
at BootStrap.Program.Main(System.String[])
Event Type: Error
Event Source: .NET Runtime 4.0 Error Reporting
Event Category: None
Event ID: 1000
Date: 4/01/2012
Time: 10:07:34 AM
User: N/A
Computer: DRACO
Description:
Faulting application start.exe, version 1.0.4386.17553, stamp 4f0384f3, faulting module kernel32.dll, version 5.2.3790.4480, stamp 49c51f0a, debug? 0, fault address 0x0000bef7.
它在调用Main()时失败,所以我无法捕获错误。我该如何确定问题所在?