[英]WPF application installed with Setup project crashes
I have created a Setup file of my WPF application using Visual Studio setup project. 我已经使用Visual Studio安装项目创建了WPF应用程序的安装文件。 The setup seems installing ok and I get the installed folder and all the files that are intended to be there.
安装程序似乎安装正常,我得到了已安装的文件夹以及打算放在其中的所有文件。 Now when I run the exe I get following error screen.
现在,当我运行exe时,出现以下错误屏幕。
Please note when i run the application it runs pretty wel without any issues. 请注意,当我运行该应用程序时,它运行得非常好,没有任何问题。 Please note I am using EntityFramework,WPFToolkit and log4net with the application.
请注意,我在应用程序中使用EntityFramework,WPFToolkit和log4net。 And I am installing the application in the rot of C drive to avoid any restriction issue writing the log files.
而且我正在将应用程序安装在C驱动器的rot中,以避免写入日志文件时遇到任何限制问题。
Can anybody please let me know how I can track what is happening ? 有人可以让我知道如何跟踪发生的事情吗? I tried 'try catch' in App.xaml.cs OnStartUp and MainWindow constractor returning no exceptions.
我在App.xaml.cs OnStartUp和MainWindow承包商中尝试了“尝试捕获”,没有返回异常。 Following link has the files mentioned in the error screen : https://www.dropbox.com/sh/2shp428xcawuk8u/mg5cyXvQ_8
以下链接具有错误屏幕中提到的文件: https : //www.dropbox.com/sh/2shp428xcawuk8u/mg5cyXvQ_8
My guess is that your application doesn't have write permission in somewhere. 我的猜测是您的应用程序在某处没有写权限。 You just need to find out where it is.
您只需要找出它在哪里。 The best solution is to add a listener to
Application.DispatcherUnhandledException
and see what the real error is. 最好的解决方案是将侦听器添加到
Application.DispatcherUnhandledException
然后查看真正的错误是什么。 It works even better that log4net. 它比log4net更好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.