如何查看在运行时崩溃的已部署应用程序的堆栈跟踪
本文关键字:部署 应用程序 堆栈 跟踪 运行时 崩溃 何查看 | 更新日期: 2023-09-27 18:37:06
我有一个应用程序,它在启动后立即崩溃,但仅在部署后崩溃(它在调试模式下运行良好)。
为简单起见,我一直在Visual Studio 2012中将其部署为CD样式的部署。
这是一个 c# 窗口应用程序。
引发的错误(在事件日志中)如下所示:
Application: applaunch.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
at Konformance.App.Main()
at System.AppDomain._nExecuteAssembly(System.Reflection.RuntimeAssembly, System.String[])
at System.AppDomain.nExecuteAssembly(System.Reflection.RuntimeAssembly, System.String[])
at System.Runtime.Hosting.ManifestRunner.Run(Boolean)
at System.Runtime.Hosting.ManifestRunner.NewThreadRunner()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
其次:
Faulting application name: applaunch.exe, version: 4.0.30319.33440, time stamp: 0x52003c5a
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54504ade
Exception code: 0xe0434352
Fault offset: 0x00014598
Faulting process ID: 0x1a64
Faulting application start time: 0x01d02c18ff5c4f43
Faulting application path: C:'Windows'Microsoft.NET'Framework'v4.0.30319'applaunch.exe
Faulting module path: C:'WINDOWS'SYSTEM32'KERNELBASE.dll
Report ID: 3ee36614-980c-11e4-8354-b8ca3a87a278
Faulting package full name:
Faulting package-relative application ID:
最可能的原因是什么?
谢谢
事实证明,该问题是由用户使用版本控制软件(SVN)出错的问题引起的。结果是从 .proj 文件中删除了几个部分,导致部署的包配置不正确。