WPF App crashes


#1

Very simple WPF application, if I add

to the app.config

the app crashes with

An unhandled exception of type ‘System.TypeInitializationException’ occurred in PresentationFramework.dll


#2

Can you dig deeper into the stacktrace see exactly what is causing the TypeInitializationException? Posting the whole stacktrace is usually best.


#3

Thank you for the reply. Looks like it was the ordering of the configuration items in the app.config. I only found this out from reading other posts with similar errors. I didn’t think this would cause a crash, but apparently so.