1
在VS2012,WPF項目中,添加連接字符串後,遇到錯誤爲「System.Windows.Navigation.BaseUriHelper」類型初始化拋出異常
爲「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>