WPF application crashing on Windows Server 2008


I received an error report regarding a WPF app that wouldn't start up in a Windows Server 2008 Service pack 2 server (the application is an administration tool we're distributing to our customers). Since this application has a lot of external references, I tried to simplify the problem by creating a simple WPF application using Visual Studio 2013: a plain white window with "hello world" showing and nothing more. I tried to make it run in the production server, with no luck: it always crashes immediately.

Here's what I have:

  • the application was created with the standard VS 2013 template for WPF, so it had 3.5 as the target framework; i changed it to 4.6
  • the server has the 3.5 SP1 and 4.6 versions of the .net framework installed
  • the app.config is well-formed, with the configSections section on top, no additional references besides log4net, supportedRuntime tag set according to the target framework version
  • I already checked that there are no project references from version 3.5 left in the project
  • I already tried logging in the DispatcherUnhandledException and in the AppDomain.UnhandledException handlers
  • the application runs in my development environment
  • the application runs in production environment only if I change the target framework to 3.5. In this case, the WPF windows shows up and the log file is correctly produced
  • I already tried producing a dump and trying to debug it in Visual Studio: I just get a "Source not available" message and a stack trace ending with ntdll.dll!NtWaitForSingleObject()

Here are the error details:


Stopped working

Problem signature:

Problem Event Name: APPCRASH

Application Name: MyApp.exe

Application Version:

Application Timestamp: 5bfc07f1

Fault Module Name: KERNEL32.dll

Fault Module Version: 6.0.6002.24367

Fault Module Timestamp: 5ae3dcd9

Exception Code: e0434352

Exception Offset: 000000000001667d

OS Version: 6.0.6002.

Locale ID: 1033

The Windows event log shows little information:

Faulting application MyApp.exe, version, time stamp 0x5bfc07f1, faulting module KERNEL32.dll, version 6.0.6002.24367, time stamp 0x5ae3dcd9, exception code 0xe0434352, fault offset 0x000000000001667d, process id 0x%9, application start time 0x%10.

Application: MyApp.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: exception code e0434352, exception address 0000000077A6667D

Stack: [this is empty]

Any suggestions?

asked on Stack Overflow Nov 26, 2018 by Sue Maurizio • edited Nov 26, 2018 by Sue Maurizio

1 Answer


Just in case someone else stumbles on the same problem, looks like the KB4457921 update from Microsoft somehow solves the issue. If an update is not possible, consider porting the code back to .net framework v. 3.5.

answered on Stack Overflow Nov 28, 2018 by Sue Maurizio • edited Nov 30, 2018 by Sue Maurizio

User contributions licensed under CC BY-SA 3.0