I am using Visual Studio 2013 with the .NET Framework 4.5.
I included System.Configurationas a reference in the project.
I also included the using statement in the class as such:
using System.Configuration;
However, the following line still gives me the above error. How to get rid of an error?
using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["WarrantySqlConnection"].ToString()))
A compile-time error is in the word ConfigurationManager.
source
share