Dúvida ConfigurationManager
Olá amigos, utilizei no início da minha classe:
using System.Configuration;
Estranho que não consigo acessar o ConfigurationManager...
Na linha:
strConn = ConfigurationManager.ConnectionStrings[´conexao´].ConnectionString;
Ocorre o erro: The name ´ConfigurationManager´ does not exist in the current context
Acho estranho pois estou utilizando o Configuration, por que será que não está reconhecendo o comando?
using System.Configuration;
Estranho que não consigo acessar o ConfigurationManager...
Na linha:
strConn = ConfigurationManager.ConnectionStrings[´conexao´].ConnectionString;
Ocorre o erro: The name ´ConfigurationManager´ does not exist in the current context
Acho estranho pois estou utilizando o Configuration, por que será que não está reconhecendo o comando?
Buenolex
Curtidas 0