简体   繁体   English

为什么我的WPF应用程序不显示?

[英]Why doesn't my WPF application show up?

I have a WPF application developed and been testing already for a few months. 我开发了一个WPF应用程序,并且已经测试了几个月。 When it's installed on the client's computer the application starts and no window is visible. 当它安装在客户端的计算机上时,应用程序启动并且没有窗口可见。 The task manager shows the application is running. 任务管理器显示应用程序正在运行。

The application is writing all activities in few log files and it looks like it is doing something but no visible screen. 应用程序正在将所有活动写入少量日志文件中,看起来它正在执行某些操作,但没有可见的屏幕。

What can be a possible cause of the problem ? 可能导致问题的原因是什么?

Why it is invisible on that specific machine ? 为什么它在特定机器上不可见? The machine is Windows 7 64x bit The installed frameworks are v1.0 1.1 v2.0 v3.0 v3.5 v4.030319 该机器是Windows 7 64x位安装的框架是v1.0 1.1 v2.0 v3.0 v3.5 v4.030319

The strange thing is the application was working before. 奇怪的是应用程序之前正在工作。

You should check Windows Event log (Type eventvwr in run dialog or go to viewer by Computer Management dialog of Windows) to get info about the problem. 您应该检查Windows事件日志(在运行对话框中键入eventvwr或通过Windows的“计算机管理”对话框转到查看器)以获取有关该问题的信息。 The reason is most likely your application has an exception before your main window is opened. 原因很可能是您的应用程序在打开主窗口之前有异常。 So you see that process is running in task manager but windows did not show up. 所以你看到该进程在任务管理器中运行但是窗口没有显示出来。

The reason in event log could be anything. 事件日志中的原因可能是任何事情。 May be your app requires a file in a specified path but not found. 可能是您的应用需要指定路径中的文件但找不到。 I meany anything that causes an except,on could be your problem. 我meany什么导致一个除外,可能是你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM