470,647 Members | 1,115 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

Properties.Settings.Default (application.exe.config) am I losing my mind?

I have a program that uses settings. When I save my settings they are
saved:

Properties.Settings.Default.Save();

when I restart the application, my settings are present, the changes
are in fact saved. All is good!

However, When I go to the application Folder application.exe.config
and open the file, the file has my original design time settings for
everything. No Updates are there. None! But they must be written
somewhere because they are maintained.

I have searched my system for anything that resembles my assembly name
with hopes of finding it.

Where are they - What's Going on here?

Mar 3 '07 #1
3 11488
On Mar 3, 1:09 pm, "DaBrain" <Tapplicat...@gmail.comwrote:
I have a program that uses settings. When I save my settings they are
saved:

Properties.Settings.Default.Save();

when I restart the application, my settings are present, the changes
are in fact saved. All is good!

However, When I go to the application Folder application.exe.config
and open the file, the file has my original design time settings for
everything. No Updates are there. None! But they must be written
somewhere because they are maintained.

I have searched my system for anything that resembles my assembly name
with hopes of finding it.

Where are they - What's Going on here?


Dee Deee Deeee!

I figured it out.

.... Document and Settings....\User.Config

Sorry, i'm thinking that settings are the same as the Web.Config file.
This is what happens when a UNIX Guy Moves to ASP.NET then Moved to
Windows .NET Desktop Apps.


Mar 3 '07 #2
Hi,

Try this:

Dim config As Configuration = ConfigurationManager.OpenExeConfiguration(Configur ationUserLevel.PerUserRoamingAndLocal)

MessageBox.Show("Local user config path: " & config.FilePath)
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Mar 15 '07 #3
Were you expecting something different?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<yulyoswrote in message news:20**********************@gmail.com...
Hi,

Try this:

Dim config As Configuration =
ConfigurationManager.OpenExeConfiguration(Configur ationUserLevel.PerUserRoamingAndLocal)

MessageBox.Show("Local user config path: " & config.FilePath)
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com

Mar 18 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by suranga.suranga | last post: by
reply views Thread by =?Utf-8?B?UmljayBHbG9z?= | last post: by
13 posts views Thread by Dave | last post: by
2 posts views Thread by Jan Eliasen | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.