【问题标题】:Crashing deployed app on XamlParse在 XmlParse 上崩溃部署的应用程序
【发布时间】:2015-01-16 22:26:00
【问题描述】:

我已经从我的 WPF 应用程序创建了 ClickOnce 应用程序部署清单,但是当我尝试安装它时,它会崩溃并且我收到以下错误日志:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01:   phynix.exe
Problem Signature 02:   1.0.0.0
Problem Signature 03:   54b90fb3
Problem Signature 04:   mscorlib
Problem Signature 05:   4.0.30319.17929
Problem Signature 06:   4ffa561c
Problem Signature 07:   43c4
Problem Signature 08:   105
Problem Signature 09:   System.Windows.Markup.XamlParse
OS Version: 6.1.7601.2.1.0.256.48
Locale ID:  1031
Additional Information 1:   0a9e
Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
Additional Information 3:   0a9e
Additional Information 4:   0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

有人知道是什么问题吗??

【问题讨论】:

    标签: c# .net wpf clickonce


    【解决方案1】:

    XamlParse 异常意味着无法读取 XAML 或从中生成的代码无法正确执行。

    通常是这样的:

    • 图像文件未作为资源包含在项目中,或位于部署计算机上不可用的位置;
    • 缺少引用的程序集和/或其依赖项。

    【讨论】:

      【解决方案2】:

      尝试在WPF 中连接UnhandledException 事件,并在app.xaml 中添加事件连接以避免上述异常。

      参考:How can I get useful WPF .NET error information from a user's machine?

      【讨论】:

      • 避免?我不认为挂钩 UnhandledException 会“避免”异常。它可以用来记录异常但是如果你是这个意思的话。
      猜你喜欢
      • 1970-01-01
      • 2015-10-11
      • 2020-11-08
      • 1970-01-01
      • 2016-01-27
      • 1970-01-01
      • 2017-07-01
      • 2020-08-06
      相关资源
      最近更新 更多