ANTES:
Executar o fonte:
Configuration configuration = WebConfigurationManager.OpenWebConfiguration("~"); ConfigurationSection configurationSection = configuration.GetSection("connectionStrings"); configurationSection.SectionInformation.ProtectSection("DataProtectionConfigurationProvider"); configurationSection.SectionInformation.ForceSave = true; configuration.Save(ConfigurationSaveMode.Full);
DEPOIS:
Como pegar o valor da connectionString ?
Response.Write ( ConfigurationManager.ConnectionStrings["MinhaConnectionString"].ConnectionString );
Responsável pela mágica -> DataProtectionConfigurationProvider
[]’s
Francke Peixoto