.NET应用程序的WinForms死在启动时 [英] .NET Winforms app dies on startup

查看:131
本文介绍了.NET应用程序的WinForms死在启动时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.net Winforms应用程序用C#编写该作品无处不在,但在一个特定的机器。在该机器上死了而没有启动。没有错误消息,但以下被写入事件日志:

I have a .NET Winforms app written in C# which works everywhere but on one particular machine. On that machine it dies without ever starting. There is no error message, but the following is written to the event log:

类型:错误

来源:.NET运行库2.0错误报告

Source: .NET Runtime 2.0 Error Reporting

说明:错误应用程序myapp.exe,4.2.0.0版本,印花税4bcf05d0,错误模块KERNEL32.DLL,5.2.3790.4480版本,戳49c51f0a,调试? 0,错误地址0x0000bef7。

Description: Faulting application myapp.exe, version 4.2.0.0, stamp 4bcf05d0, faulting module kernel32.dll, version 5.2.3790.4480, stamp 49c51f0a, debug? 0, fault address 0x0000bef7.

似乎有不成为任何奇数有关机 - 它是若干使用vSphere创建克隆之一,并没有表现出任何其他问题。其他克隆没有任何问题的运行我的应用程序。它为Windows Server 2003 SP2与.NET Framework 3.5 SP1中,运行Citrix,这是克隆取新名称后重新安装(因为是其他克隆)。

There doesn't seem to be anything odd about that machine - it is one of a number of clones created with VSphere, and doesn't exhibit any other issues. The other clones run my app without any problem. It is Windows Server 2003 SP2 with .NET Framework 3.5 SP1, running Citrix, which was reinstalled after the clone to take the new name (as were the other clones).

在如何诊断或陷阱的问题?任何意见

Any advice on how to diagnose or trap the issue?

此外,我很快就要释放我的应用程序的新版本,有什么我可以做的到新版本,以提供有关此类问题的更多信息?

Also, I am soon going to release a new version of my app, is there anything I can do to the new version to give more information on this kind of problem?

编辑:谢谢大家的答案,不幸的是,系统管理员为机器决定只从头开始重建它,问题就走开了。所以,我可能永远也不会知道是什么问题了。

Thank you all for your answers, unfortunately the sysadmins for the machine decided to just rebuild it from scratch, and the problem went away. So I'll probably never know what the problem was.

推荐答案

安装调试工具的Windows的计算机上,并使用WinDbg启动应用程序。然后,它应该告诉什么异常情况发生。

Install Debugging tools for Windows on that machine, and use WinDbg to launch your application. Then it should tell what exceptions happen.

这篇关于.NET应用程序的WinForms死在启动时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆