I have created a C# .net Windows Service that has a config file.
I am reading the settings of the config file from my code using
string setting1 = Properties.Settings.Default.setting1;
If I change the value of setting1 directly in the .config file of the Windows Service for some reason it maintains the value that I had set for it at design time, in the Settings Dialog of the Project.
I do not understand what I am doing wrong ..
Thanks
You have the settings as User scope in place of Application scope.
The user scope settings are in user AppData folder. You can delete it in the AppData folder of the user under whose credentials the windows service runs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With