Getting the error "Name" Configuration "does not exist in the current context"

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.

+4
source share
1 answer

System.Configuration.dll, , , System.Configuration. DLL, , Visual Studio .

+1

All Articles