How do I fix a .NET windows application crashing at startup with Exception code: 0xE0434352?
0xE0434352 is the exception code for all .NET exceptions so that won't tell you much. How did you got this exception code? The event log?
Your best bet is to use a debugger to get more information. If the Visual Studio debugger won't help you, then you might need to check out WinDbg with SOS. See here and here for an introduction. Let it break on the exception, and see if you can get more information on the why.
If you suspect it is an issue when loading assemblies you might want to check out the Fusion Log.
KERNELBASE.dll Exception 0xe0434352 offset 0x000000000000a49d
0xe0434352 is the SEH code for a CLR exception. If you don't understand what that means, stop and read A Crash Course on the Depths of Win32™ Structured Exception Handling. So your process is not handling a CLR exception. Don't shoot the messenger, KERNELBASE.DLL is just the unfortunate victim. The perpetrator is MyApp.exe.
There should be a minidump of the crash in DrWatson folders with a full stack, it will contain everything you need to root cause the issue.
I suggest you wire up, in your myapp.exe code, AppDomain.UnhandledException
and Application.ThreadException
, as appropriate.
ASP.NET Core 3 and 500.30 In-Process Startup Failure
Turns out I was also referencing Microsoft.AspNet 2.2 NuGet package, which doesn't play well with ASP.NET Core 3.0. Removing that dependency resolved my issue.
Related Topics
.Net: Simplest Way to Send Post with Data and Read Response
What Is the Purpose of the VShost.Exe File
How to Get a Path to the Desktop for Current User in C#
Does It Make Sense to Use "As" Instead of a Cast Even If There Is No Null Check
Validateantiforgerytoken Purpose, Explanation and Example
Is There Any Benefit to This Switch/Pattern Matching Idea
How to Make Databinding Type Safe and Support Refactoring
Observeon and Subscribeon - Where the Work Is Being Done
How to Do Appbar Docking (To Screen Edge, Like Winamp) in Wpf
Using Side-By-Side Assemblies to Load the X64 or X32 Version of a Dll
Return View as String in .Net Core
Change Desktop Wallpaper Using Code in .Net
How to Check If Wpf Is Currently Executing in Design Mode or Not
Ignore Mapping One Property with Automapper
Comparing Two Strings, Ignoring Case in C#
Are There Any Fuzzy Search or String Similarity Functions Libraries Written for C#