WPF Application fails on startup with TypeInitializationException

前端 未结 10 821
Happy的楠姐
Happy的楠姐 2020-12-17 09:05

I have a simple WPF application which I am trying to start. I am following the Microsoft Patterns and Practices \"Composite Application Guidance for WPF\". I\'ve followed

10条回答
  •  天命终不由人
    2020-12-17 09:56

    Tracking the InnerExceptions deep down , you might find the following error:

    "Only one element allowed per config file and if present must be the first child of the root element"

    This order change happened after Visual Studio EntityFramework Wizard added the connectionStrings element to the top

提交回复
热议问题