I can\'t seem to be able to access the app.config database connection string in my c# winforms app.
app.config code
SqlConnection conn = new SqlConnection(); conn.ConnectionString = ConfigurationManager .ConnectionStrings["MyDBConnectionString"].ConnectionString; try { conn.Open(); } catch (Exception) { throw; }