WPF application does not work on some machines: Work error stopped

My WPF application works fine on multiple machines, but now I get a report about this error on the user's machine:

Description: Stopped working Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: mysoftware.exe Problem Signature 02: 1.0.0.1 Problem Signature 03: 4bbcd9d9 Problem Signature 04: PresentationFramework Problem Signature 05: 3.0.0.0 Problem Signature 06: 4a174fbc Problem Signature 07: 624f Problem Signature 08: e1 Problem Signature 09: System.Windows.Markup.XamlParse OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033 

I tried to catch an Exception using Application DispatcherUnhandledException, but that did not help. And warping the Window1 constructor in the try / catch block too. The .NET Framework 3.5 is installed on this machine.

How can I find out the cause of the failure: write down this error, debug, ...?

+6
c # error-handling wpf
source share
3 answers

Just make sure you have installed .Net Framework 3.5sp1.

+4
source share

The fact that there is a mention of XAML parsing will make me check if XAML is corrupted on this particular machine. The easiest way to check it is to rename it to .xml and open it using Internet Explorer. (Even if he is well formed, he may still have some kind of problem.)

If this is an application for deploying ClickOnce, I would suggest flushing the local cache of the application and restarting it to verify that it does not fix the problem.

0
source share

I think the main problem is that the XAML file cannot be loaded.

This may be due to several problems:

  • Should the file be deployed with the dll? Is he present
  • Does the client use a different user interface culture than others? Are there any satellite assemblies?
  • What version of the .NET Framework is installed? Is it possible to install only a client profile?

Hooray!

0
source share

All Articles