473,387 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 11614
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: suranga.suranga | last post by:
VS2005/NET 2.0 provides easy way to manage configuration files using "appNamespace.Properties.Settings.Default" class. It seems initial values entered at design time through VS2005's property are...
0
by: =?Utf-8?B?UmljayBHbG9z?= | last post by:
For some unknown reason (user error?), I cannot get a NameValueCollection to persist in the app.config file. Unlike other settings, I cannot get the String Collection Editor GUI to allow my to...
1
by: logicnet.dk | last post by:
Is it possible to decide where user.config is stored by Properties.Settings.Default.Save? The default location seems to be "C:\Documents and Settings\\Local settings\Application Data\\\" and there...
13
by: Dave | last post by:
When using the properties designer to store application wide properties how do you get this to work across a project group containing an EXE and a collection of DLLs. I'm using C#.Net 2005. I...
6
by: WT | last post by:
Hello, Using VS2005. I have an assembly library that can be called from a Web site asp.net application or from a winform application. From this library I need to retrieve a path using simply a...
2
by: jtw | last post by:
I am trying to read an application setting from my App.Config file that I have modified from the default value that was entered into the settings window under project properties. string myConn =...
7
by: Dom | last post by:
It seems I can't look at the Properties.Settings.Default.xxxx value in the immediate window while I'm in debug mode. If I try, I get the message: "'System.Windows.Forms.PropertyStore' does not...
2
by: Jan Eliasen | last post by:
Hi I am having some problems reading configuration values from a configuration file, using C# 2.0. I have programmed a Windows Service, and this part goes well - it runs nicely. Now, the...
2
by: Thorsten Dittmar | last post by:
Hi, I don't get it. I'm using a typed dataset with table adapters and all that stuff. I have the database server running locally on my development system. Now: when creating a tableadapter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.