Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Properties.Settings.Default.Save(); Not Saving on a Users Machine

I have written a Winforms application which needs to save some settings for the next time the software runs. Easy I hear you say...

So, I decided to use something like this:

Properties.Settings.Default.mp4Directory = fbd.SelectedPath;
Properties.Settings.Default.Save();

All the settings are set to "User" not "Application"

And, it works perfectly on my development machine and test laptop - Happy Days!

So, I decide to publish it to the user.... The user then installs it on 2 different Windows 7 machines 32 bit and reports back that on ONE of the machines the settings are NOT being saved!!

I have read about 20 threads on Stack looking for a possible reason and I cannot find anything suggesting what could be causing this...

Can anyone suggest why this might be working on 3 out of 4 machines please?

I have asked the user if he can think of anything on the machine that might be causing this not to work but he is adamant that there is nothing "non-standard" about the machine...

Im stumped.

Thanks!

like image 995
Trevor Daniel Avatar asked Oct 21 '22 20:10

Trevor Daniel


1 Answers

This is working. Had to perform a Properties.Settings.Default.Upgrade() and then my saved settings get loaded.

or permission (ntfs permission) or Active directory permission or capacity of windows drive is full.

or there exist two user folder that you check another...

for example two or three folders there user.domain user.workgroupname user

like image 72
saber tabatabaee yazdi Avatar answered Oct 23 '22 18:10

saber tabatabaee yazdi