WPF应用程序未启动 [英] WPF Application dosen't start

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

问题描述

在我以外的其他计算机上启动基于MahApps风格的WPF应用程序时遇到问题。我正在通过Inno Setup安装我的应用。当我在装有Visual Studio 2015的计算机/计算机上或有时在其他计算机上运行.exe时,应用程序将正确启动。但是,当我在只有vs2008 + .Net或其他计算机的虚拟机上安装应用程序时,该应用程序无法启动。我可以在Task Menager中找到.exe,但没有显示窗口。

I have problem with starting WPF app based on MahApps style on others computers than my. I'm installing my app via Inno Setup. When I run .exe on my computer/computer with visual studio 2015 or sometimes on others computer, the application starts correctly. But when I install application on virtual machine which have just vs2008 + .Net or some others computers the application doesn't start. I can find the .exe in Task Menager, but no window is shown.

最好的是,我安装了两个WPF应用程序,它们均基于相同的Metro风格和一个正确启动(窗口显示),但第二个仅在任务管理器中显示。

The best is that I install two WPF applications, all based on the same metro styles and one start properly (window shows) but the second shows just in Task Manager.

我始终在带有.Net 4.6.1+的Win10上运行我的应用程序,因为我m在应用程式.Net 4.6.1中使用。

I'm running my app always on Win10 with .Net 4.6.1+, because I'm using in app .Net 4.6.1.

您有什么建议吗?也许我错过了

Have you any suggestions? Maybe I'm missed

推荐答案

您是否尝试过procmon.exe来验证发生了什么?

Have you tried procmon.exe to verify whats going on?

我遇到了类似的问题,并与procman一起解决了。并且问题是我的计算机中存在但其他计算机上不存在的缺少的dll。

I had the similar issue and figured out with procman. and the issue was a missing dll which exists in my machine but not on other machine.


  1. https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

  2. 运行procmon.exe并添加过滤器(进程名称包含)。

  3. 启动应用程序

  4. 验证procman条目并在结果列中查找FileNotFound / PathNotFound。希望您能在这里找到根本原因。

  1. Install procmon.exe from https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
  2. run the procmon.exe and add filter(process name contains ). press add.
  3. Start your app
  4. Verify the procman entries and look for FileNotFound/PathNotFound in Result column. Hope you will find the root cause here.

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

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