我有一个应用程序可以加密配置文件中的一节。在我第一次尝试从配置文件中读取加密节时,我收到一条错误消息:“无法识别的属性'configProtectionProvider‘。请注意,属性名称区分大小写。”
config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
// Get the section in the file.
ConfigurationSection section = config.GetSection("EncryptedSection")