WPF Type initialization Exception in C#

后端 未结 8 2208
长发绾君心
长发绾君心 2020-12-17 19:44

I have someone else\'s WPF-based .NET 3.5 app that I\'m attempting to update to .NET 4.5. The code ran fine under .NET 3.5, and I\'m running Visual Studio 2013 Express on Wi

相关标签:
8条回答
  • 2020-12-17 20:08

    <connectionStrings> tag should come after <configSections> and <startup> section. This made my code work.

    0 讨论(0)
  • 2020-12-17 20:13

    I replaced the depreciated Configuration library and also removed entity framework so I can't track what's wrong at all, but rebuilding helped me. Solution to Rebuild your App.Config file.

    0 讨论(0)
提交回复
热议问题