在 VS2012,WPF 项目中,添加连接字符串后,出现错误
“System.Windows.Application”的类型初始化程序引发异常
“System.Windows.Navigation.BaseUriHelper”的类型初始化程序引发异常
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionstrings>
<add connectionstring="Data Source=x.x.x.x; User Id=sa;Password=abc; Initial Catalog=hello;" name="ConString"/>
</connectionstrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>