R
ryanbreakspear
Hi, I've spent some time looking at articles about this but I can't
get it to work. I'm trying to write to my app.config file in .Net 2.0
using:
Configuration config =
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.AppSettings.Settings["email"].Value = "(e-mail address removed)";
config.Save(ConfigurationSaveMode.Minimal, true);
I get the message "Attempting to perform an unauthorized operation".
This is going to be a single user application with full write access
to the executable's path.
Thanks in advance.
Ryan
get it to work. I'm trying to write to my app.config file in .Net 2.0
using:
Configuration config =
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.AppSettings.Settings["email"].Value = "(e-mail address removed)";
config.Save(ConfigurationSaveMode.Minimal, true);
I get the message "Attempting to perform an unauthorized operation".
This is going to be a single user application with full write access
to the executable's path.
Thanks in advance.
Ryan