0

I can't populate my chart control due to invalid path exception, yet all my Database paths are correct in both App.Config and Settings.Designer.cs, the database is located in 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")]

This is the path given in the error: enter image description here

Omarrrio
  • 1,075
  • 1
  • 16
  • 34

0 Answers0