By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,931 Members | 1,436 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,931 IT Pros & Developers. It's quick & easy.

Where are user settings persisted?

P: n/a
I am using the My.Settings object to save user settings. During testing, I
want to 'zero' out what has been saved to start with the defaults again.
Where doies the framwork actually persist these user settings?

TIA,
--
Terry
Oct 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Terry,

"Terry" <Te****@nospam.nospamwrote in message
news:75**********************************@microsof t.com...
>I am using the My.Settings object to save user settings. During testing, I
want to 'zero' out what has been saved to start with the defaults again.
Where doies the framwork actually persist these user settings?
See:
http://msdn.microsoft.com/en-us/libr...t1(VS.85).aspx

<quote>
Settings File Locations
The location of the app.exe.config and user.config files will differ based
on how the application is installed. For a Windows Forms-based application
copied onto the local computer, app.exe.config will reside in the same
directory as the base directory of the application's main executable file,
and user.config will reside in the location specified by the
System.Windows.Forms.Application.LocalUserAppDataP ath property. For an
application installed by means of ClickOnce, both of these files will reside
in the ClickOnce Data Directory underneath %InstallRoot%\Documents and
Settings\username\Local Settings.

The storage location of these files is slightly different if a user has
enabled roaming profiles, which enables a user to define different Windows
and application settings when he or she is using other computers within a
domain. In that case, both ClickOnce applications and non-ClickOnce
applications will have their app.exe.config and user.config files stored
under %InstallRoot%\Documents and Settings\username\Application Data.

For more information about how the Application Settings feature works with
the new deployment technology, see ClickOnce and Application Settings. For
more information about the ClickOnce Data Directory, see Accessing Local and
Remote Data in ClickOnce Applications.

</quote>

Oct 3 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.