.NET 应用程序不想运行

发布于 2024-12-07 19:47:10 字数 440 浏览 0 评论 0原文

好的,这就是我的问题:我为某人开发了一个 .NET 4.0(客户端配置文件)+ SQL Server Compact 应用程序,有人报告了以下问题:应用程序根本无法启动。没有错误,没有异常,没有消息,什么也没有。加载光标显示 5 秒钟,然后没有任何反应。该应用程序也不会显示在进程树中。

这不是我为他开发的第一个 .NET 应用程序,因此我 100% 有信心他的计算机 (.NET 4.0 CP) 上已安装所有必需的软件。我要求他安装 SQL Server Compact 4.0 的运行时,他安装了,所以我认为问题不是出在这儿。

我尝试发送仅包含 UI 初始化的构建(主窗体的构造函数/加载方法中没有其他内容)。它有同样的问题。

我不知道在哪里寻找问题的根源。这里有人可以帮助我提供一些提示,为我指明正确的方向吗?我的猜测是应用程序在这 5 秒内“尝试”启动,但失败了。

如果您需要更多信息,请询问。

Okay, so, here's my problem: I have developed a .NET 4.0 (Client Profile) + SQL Server Compact application for someone and that someone reported the following issue: the application doesn't start at all. No errors, no exceptions, no messages, no nothing. The loading cursor shows up for 5 seconds, and then nothing happens. The application doesn't show up in the process tree either.

This is not the first .NET app I develop for him, so I am 100% confident that all required software has been installed on his machine (.NET 4.0 CP). I have asked him to install the runtime for SQL Server Compact 4.0, which he did, so I don't think the problem is coming from here.

I have tried sending a build with UI initialization only (no other stuff within the main form's constructor/load method). It has the same issue.

I have no idea where to look for the problem's source. Anyone here who could help me with some hints, to point me to the right direction? My guess is that the application 'tries' to start during those 5 seconds, but fails.

If you need some more info, please ask.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

只是我以为 2024-12-14 19:47:10

尝试在 Windows“事件查看器”中查找一些线索,并向他发送一个简单的控制台应用程序(Hello World 就可以 - 也许使用简单的 Sql Compact 测试),以确保他得到了他需要的一切。如果其他一切都失败了,请自行检查 - 有时您的用户只是没有提到最简单的事情。

是的:添加日志记录(到一个简单的文本文件中即可)

Try looking in Windows "Event Viewer" for some clues and send him a simple console-app (Hello World will do - maybe with simple Sql Compact test) to make really sure he got everything he needs. And if everything else fails go and check for yourself - it's sometimes the simplest things your user just don't mention.

And yes: add loging (into a simple text file will do)

你曾走过我的故事 2024-12-14 19:47:10

当没有其他好的信息时,事件查看器通常会提供好的信息。当我处理的某个应用程序无法启动时,我会查看此处。在“Windows 日志”下,我查看“应用程序”和“系统”日志。大多数时候,错误会为我指明正确的方向。

The Event Viewer generally has good information when there is no other good information. When one of the applications I work on fail to start, this is where I look. Under the "Windows Logs", I review the" Application" and "System" Logs. Most of the time there is an error that will point me in the right direction.

尐偏执 2024-12-14 19:47:10
  1. 首先检查PC上是否安装了应用程序框架。如果您使用 4.5 构建应用程序,则必须在计算机上安装 4.5。
  2. 如果您的应用程序没有显示任何错误 - 您需要转到事件查看器,并从源“.NET Runtime”中查找最后一个错误。查看该错误消息,因为它将包含异常信息。
  1. First of all check that app framework is installed on PC. If you build your app using 4.5 -- 4.5 must be installed on the machine.
  2. If your app doesn't show any error -- you need to go to Event Viewer, and find last error from the Source ".NET Runtime". Look at that error message as it will contain the Exception info.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文