启动时WPF应用程序崩溃 [英] WPF application crashes when I launch

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

问题描述

我使用"Microsoft Visual Studio安装程序"为旧版c#WPF应用程序创建MSI.

I used 'Microsoft Visual Studio Installer' to create a MSI for a legacy c# WPF application.

安装后,我在下面看到此错误.我是否安装了错误的网络框架?

After I install, I see this error BELOW. Do I have the wrong net framework installed ?

故障排除应用程序名称:MyDesktop.UI.exe,版本:1.20.7097.18607,时间戳:0x5cfa9cce 故障模块名称:clr.dll,版本:4.7.3416.0,时间戳:0x5cabfd2c 异常代码:0xc0000005 故障偏移量:0x0045510d 故障进程ID:0x93c 错误的应用程序开始时间:0x01d51d5595e74050 错误的应用程序路径:C:\ Program Files(x86)\ ASD \ Microsoft.Support.UnifiedDesktop.UI.exe 错误的模块路径:C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ clr.dll 报告ID:b26b4f9f-2e97-434b-b605-fa95ba4974ac 故障包全名: 与程序包相关的应用程序ID错误:

Faulting application name: MyDesktop.UI.exe, version: 1.20.7097.18607, time stamp: 0x5cfa9cce Faulting module name: clr.dll, version: 4.7.3416.0, time stamp: 0x5cabfd2c Exception code: 0xc0000005 Fault offset: 0x0045510d Faulting process id: 0x93c Faulting application start time: 0x01d51d5595e74050 Faulting application path: C:\Program Files (x86)\ASD\Microsoft.Support.UnifiedDesktop.UI.exe Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Report Id: b26b4f9f-2e97-434b-b605-fa95ba4974ac Faulting package full name: Faulting package-relative application ID:

推荐答案

源代码? :我假设您没有源代码,并且不能 1) 只是逐步完成启动过程,还是 2) 附加到已部署到最终安装位置的调试二进制文件?只是检查.

Source Code?: I assume you don't have the source code and can't 1) just step-through the launch sequence or 2) attach to debug binaries deployed to final installation location? Just checking.

没有源代码 :在没有可用源的情况下,我通常使用 3) 快速示例-和

No Source Code: Without source available, I usually use 3) ProcMon.exe to monitor launch problems (quick sample - and Hanselman has a video on ProcMon.exe) and 4) I enable any available logging and / or application.exe debug modes. 5) Sometimes I assemble all files in a folder on the desktop and try to run from there (generally no permission or access denied problems).

常见问题 :问题通常与 missing runtimes (例如:.NetJavaVC++ Runtimeetc...)和通常的 configuration errors config files(inixml)和registry(wrong pathsURLssettingsetc...)中找到-很明显,只是提及.

Common Problems: Very often problems relate to lacking permission or missing runtimes (for example: .Net, Java, VC++ Runtime, etc...) and the usual configuration errors found in config files (ini, xml) and the registry (wrong paths, URLs, settings, etc...) - obvious, just mentioning.

想法列表" :这是潜在的罪魁祸首的想法列表"很长:.请做 检查这一.可以找到该列表较旧版本的链接 在下面.

"Ideas List": Here is a long "ideas list" of potential culprit causes: Launch Debugging - "torpedos full spread". Please do check this one. Links to older versions of the list can be found below.


错误代码 :查找错误代码( 魔术数字数据库" ),似乎是访问冲突:

  • 检查错误代码 -几种工具和方法

  • 以下是一些资源:


    Here are some resources:

    • Launch Debugging Ideas List: Windows Application Startup Error Exception code: 0xe0434352 (older version, similar to the one linked to above).
    • Dependency Scanners: Various tools to debug dependency issues (many different tools can help launch debugging, here are some of the most common ones).
    • Permissions & Runtimes: WiX Toolset PermissionEx Problem - App Does Not Run After Installation (top part of answer only).

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

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