Click here to Skip to main content
15,887,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Whenever we update some user setting by calling the following code (Here the property name is given as 'SomeProperty')
Settings.Default.SomeProperty = TextBox1.Text;


And save it by calling the save method like the following code
Settings.Default.Save();


The value of 'SomeProperty' is changed, and I can see it as I load that value in a label in next run of the application. But when I try to manually find the updated value of 'SomeProperty' from the 'app.config'
or 'app.exe.config' file I find that the value assigned to 'SomeProperty' while creating it is there(Not updated).

Can anyone please tell me where is the updated version of the .config file is saved?

What I have tried:

I have no idea about why this is happening, and what is the remedy..
Posted
Comments
Bryian Tan 5-Mar-17 22:36pm    
Did you restart the service after updating the .config?
Rajib13 5-Mar-17 22:53pm    
Ofcourse I did, and the text that was written in TextBox1 in last execution shows properly in the label where I am loading the value of 'SomeProperty'. But manually I can not find where it is saved.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900