Click here to Skip to main content
15,919,613 members
Home / Discussions / C#
   

C#

 
GeneralRe: I dont solved this error! Pin
wwwxyz17-Apr-08 5:17
wwwxyz17-Apr-08 5:17 
GeneralRe: I dont solved this error! Pin
MidwestLimey17-Apr-08 16:14
professionalMidwestLimey17-Apr-08 16:14 
Generalfile.copy not copying .zip files Pin
markymark8217-Apr-08 3:20
markymark8217-Apr-08 3:20 
GeneralRe: file.copy not copying .zip files Pin
Reelix17-Apr-08 4:01
Reelix17-Apr-08 4:01 
GeneralRe: file.copy not copying .zip files Pin
led mike17-Apr-08 4:37
led mike17-Apr-08 4:37 
QuestionUncommiteed SQLTransaction causing the problem Pin
atuldeore17-Apr-08 3:03
atuldeore17-Apr-08 3:03 
GeneralRe: Uncommiteed SQLTransaction causing the problem Pin
Reelix17-Apr-08 3:58
Reelix17-Apr-08 3:58 
GeneralRe: Uncommiteed SQLTransaction causing the problem Pin
atuldeore17-Apr-08 4:56
atuldeore17-Apr-08 4:56 
GeneralRegistryKey.OpenRemoteBaseKey() problem Pin
heidihund17-Apr-08 3:02
heidihund17-Apr-08 3:02 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Ed.Poore17-Apr-08 4:39
Ed.Poore17-Apr-08 4:39 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
heidihund17-Apr-08 21:50
heidihund17-Apr-08 21:50 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Ed.Poore17-Apr-08 23:07
Ed.Poore17-Apr-08 23:07 
AnswerRe: RegistryKey.OpenRemoteBaseKey() problem Pin
heidihund20-Apr-08 21:07
heidihund20-Apr-08 21:07 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Dave Kreskowiak17-Apr-08 5:07
mveDave Kreskowiak17-Apr-08 5:07 
Generalmy game code Pin
stephen bempah17-Apr-08 2:42
stephen bempah17-Apr-08 2:42 
GeneralRe: my game code Pin
laserbaronen17-Apr-08 2:52
laserbaronen17-Apr-08 2:52 
GeneralRe: my game code Pin
Pete O'Hanlon17-Apr-08 3:01
mvePete O'Hanlon17-Apr-08 3:01 
GeneralRe: my game code Pin
Dave Kreskowiak17-Apr-08 5:03
mveDave Kreskowiak17-Apr-08 5:03 
GeneralMTOM Pin
JustRonald17-Apr-08 2:25
JustRonald17-Apr-08 2:25 
AnswerRe: MTOM Pin
atuldeore17-Apr-08 3:16
atuldeore17-Apr-08 3:16 
GeneralRe: MTOM Pin
JustRonald17-Apr-08 3:52
JustRonald17-Apr-08 3:52 
Generalexception in ReaderWriterLock Pin
George_George17-Apr-08 1:47
George_George17-Apr-08 1:47 
Generalapp.config wtf Pin
Razvan Dimescu17-Apr-08 1:00
Razvan Dimescu17-Apr-08 1:00 
GeneralRe: app.config wtf Pin
Ed.Poore17-Apr-08 1:13
Ed.Poore17-Apr-08 1:13 
GeneralRe: app.config wtf Pin
Razvan Dimescu17-Apr-08 6:46
Razvan Dimescu17-Apr-08 6:46 
I need to load/save some settings from another assembly so I changed the code to:
Configuration configManager = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
ConfigurationSectionGroup section = configManager.SectionGroups["userSettings"];
if (section != null)
   {
    ClientSettingsSection clientSettings = section.Sections["OutlookSync.Properties.Settings"] as ClientSettingsSection;
    SettingElement element = clientSettings.Settings.Get("SalutSetting");
    clientSettings.Settings.Remove(element);

    element.Value.ValueXml.InnerText = "update";
    clientSettings.Settings.Add(element);
    configManager.Save();
             }

Everything is nice and smooth when i run this code on a test project - applications are modified and next time i start the application, the updated config is taken, but when i include it in my application, the changes are not saved next time when the application starts. I searched everywhere in the application in order to find our if the configurations are override but it seems they are not. I'm complete shocked and without any ideas.


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.