Using below code:
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.AppSettings.Settings["SFDCSOAP_WebReference_SforceService"].Value = newUrl;
config.Save(ConfigurationSaveMode.Modified);
ConfigurationManager.RefreshSection("appSettings");
Happy coding! :)
0 comments :
Post a Comment