Good morning everyone I have the following code to establish a connection to a database SQL-SERVER 2014 .
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
namespace QDoc.Acceso
{
class Conexion
{
//variable globales
private static string cadenaconexion = ConfigurationManager.ConnectionStrings["cadenaconexion"].ConnectionString; // lee la cadena de conexión de la configuración de la aplicación
The detail is that when executing it sends me the following error:
The name 'ConfigurationManager' does not exist in the current context and use the options given to me and I can not correct the error, someone knows what I can do.