当我尝试在Windows 10中启动Windows服务时,我收到以下错误。我从事件查看器中复制了它
Faulting application name: MyAppp.exe, version: 1.0.0.0, time stamp: 0x56c58165
Faulting module name: KERNELBASE.dll, version: 10.0.10586.0, time stamp: 0x5632da1c
Exception code: 0xe0434352
Fault offset: 0x000bd8a8
Faulting process id: 0x124c
Faulting application start time: 0x01d16afbc8d42334
Faulting application path: C:\Users\Desktop\NightlyBuild\ServiceOutput\MyAppp.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report Id: 0269d024-55a3-46d6-8f00-d7f99bab4a4a
Faulting package full name:
Faulting package-relative application ID:
答案 0 :(得分:0)
0xe0434352是.NET CLR用于未处理异常的一般错误代码。您的代码必须从没有异常处理程序的线程中抛出异常。
为AppDomain.UnhandledException事件实现事件处理程序,并从那里记录异常的详细信息。然后,您将能够找到并修复根本原因。