简体   繁体   English

与安装项目一起安装的WPF应用程序崩溃

[英]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.

相关问题 安装后应用程序崩溃 - Application crashes when installed 无法在 Visual Studio 17 中运行使用安装项目安装的应用程序 - Cannot run application installed using Setup Project in Visual Studio 17 创建WPF项目的安装文件 - Create Setup file for WPF Project 在为C#Windows应用程序创建setUp项目时,如何以及为什么将已安装产品的详细信息添加到System Registry? - How and why, to add the details of an installed product to System Registry, while creating setUp project for C# windows application? Visual Studio设置项目—如何打包要与主应用程序一起安装的我的应用程序的.rpt文件 - Visual Studio SetUp Project — How to package .rpt files for my application to be installed along with the main app 通过Windows Installer安装项目更新安装的应用程序时如何跳过文件夹选择表格 - How to skip folder selection form when update installed application via Windows Installer setup project WPF:安装在XP上的WPF应用程序中的XamlParseException - WPF : XamlParseException in WPF application when installed on XP 从网页获取HTML并为Wpf应用程序(C#)创建安装项目 - Get Html from Web page and create Setup project for Wpf Application (C#) 经常写入 WPF 文本框会导致应用程序崩溃 - Frequently writing to WPF Textbox crashes application WPF COMException在启动时崩溃应用程序(今天开始) - WPF COMException Crashes Application At Startup (Started Today)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM