启动WPF应用程序后出现问题 [英] Problem after launching WPF application
本文介绍了启动WPF应用程序后出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我发布使用fluent-hibernate的wpf应用程序后,它已成功安装,但是当我运行应用程序时,没有任何反应。我在流程管理器中看到我的应用程序流程大约2秒钟,然后它自动结束。
我首先怀疑应用程序中的网址我使用以下格式
After I publish a wpf application that uses fluent-hibernate it was successfully installed but when i run the app, nothing happens. I see my application process in process manager for about 2 seconds and then it ends automatically.
I first suspected at the urls in the app I use the following format
/MyApp;component/Images/Picture.png
我尝试过:
What I have tried:
i head to the release folder in application files and start the executable file it starts normally with no problem! what could be the problem here ? Thanks
推荐答案
您的应用程序正在抛出您未处理的异常。期间。
我敢打赌,这是一个文件系统问题,但猜测是我们任何人都能提供的最好的。在主表单的初始化代码周围放一个try / catch
块,在catch
部分显示错误消息,然后我打赌你找到它。
Your application is throwing an exception that you aren't handling. Period.
My bet is that it's a file system problem, but a guess is the best any of us can provide. Put atry/catch
block around your main form's initialization code that displays an error message in thecatch
part, and I bet you find it.
这篇关于启动WPF应用程序后出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文