由于路径无效,图表控件不会填充

时间:2016-03-21 16:02:15

标签: c# charts devexpress

由于无效的路径异常,我无法填充我的图表控件,但 App.Config Settings.Designer.cs ,数据库位于 Bin \ Debug \ DB \ Access.accdb

App.Config:

connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\DB\maindb.accdb"

Settings.Designer.cs:

[global::System.Configuration.DefaultSettingValueAttribute("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\DB\\maindb.accdb")]

这是错误中给出的路径: enter image description here

0 个答案:

没有答案