473,651 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

where the ConfigurationSe ttings saved

In .Net,Through System.Configur ation.Configura tionSettings Get Application's
Settings
I can't find the Configuration Value from Register
Where the ConfigurationSe ttings saved?
How to Read it except System.Configur ation?
Thanks!

Harvie
Nov 17 '05 #1
4 2421
Harvie,

The configuration settings are a combination of the settings in the
config file for the application, as well as the user, machine, and
enterprise settings for the framework.

Why do you want to access them outside of the ConfigurationSe ttings
class? What are you trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"harvie wang" <qu*****@gmail. com> wrote in message
news:5e******** *************** **@news.microso ft.com...
In .Net,Through System.Configur ation.Configura tionSettings Get
Application's Settings
I can't find the Configuration Value from Register
Where the ConfigurationSe ttings saved?
How to Read it except System.Configur ation?
Thanks!

Harvie

Nov 17 '05 #2
Hello Nicholas Paldino [.NET/C# MVP],
:) thanks!
I learn C#
when I using system.configur ation ,I can't find where the Settings saved
so I want to know the .Net Framework how to do this
Harvie,

The configuration settings are a combination of the settings in
the config file for the application, as well as the user, machine, and
enterprise settings for the framework.

Why do you want to access them outside of the
ConfigurationSe ttings class? What are you trying to do?

"harvie wang" <qu*****@gmail. com> wrote in message
news:5e******** *************** **@news.microso ft.com...
In .Net,Through System.Configur ation.Configura tionSettings Get
Application's Settings
I can't find the Configuration Value from Register
Where the ConfigurationSe ttings saved?
How to Read it except System.Configur ation?
Thanks!

Harvie

Nov 17 '05 #3
harvie,

The config file for the application is going to have the most impact on
the settings (or in an ASP.NET case, the web.config file for the directory).
That's where you will want to look most of the time.

It should be noted that you don't have to have an application
configuration file for the app to run.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"harvie wang" <qu*****@gmail. com> wrote in message
news:5e******** *************** **@news.microso ft.com...
Hello Nicholas Paldino [.NET/C# MVP],
:) thanks!
I learn C# when I using system.configur ation ,I can't find where the
Settings saved
so I want to know the .Net Framework how to do this
Harvie,

The configuration settings are a combination of the settings in
the config file for the application, as well as the user, machine, and
enterprise settings for the framework.

Why do you want to access them outside of the
ConfigurationSe ttings class? What are you trying to do?

"harvie wang" <qu*****@gmail. com> wrote in message
news:5e******** *************** **@news.microso ft.com...
In .Net,Through System.Configur ation.Configura tionSettings Get
Application's Settings
I can't find the Configuration Value from Register
Where the ConfigurationSe ttings saved?
How to Read it except System.Configur ation?
Thanks!

Harvie


Nov 17 '05 #4
Hello Nicholas Paldino [.NET/C# MVP],
HoHo:)
I'm really purpose is to find the .Net Framework's work mode
in system.dll ,I find next code:
--------------------------------------
ConfigurationRe cord record1 = null;
string text1 = DefaultConfigur ationSystem.Mac hineConfigurati onFilePath;
//private const string MachineConfigFi lename = "machine.config ";
Uri uri1 = DefaultConfigur ationSystem.App ConfigPath;
this._applicati on = record1 = new ConfigurationRe cord();
bool flag1 = record1.Load(te xt1);
if (!flag1 || (uri1 == null))
{
return;
}
this._applicati on = new ConfigurationRe cord(record1);
this._applicati on.Load(uri1.To String());
---------------------------------------
Now i know the file named machine.config is the target:)
or the uri1 that is my application configuration file

harvie,

The config file for the application is going to have the most
impact on the settings (or in an ASP.NET case, the web.config file for
the directory). That's where you will want to look most of the time.

It should be noted that you don't have to have an application
configuration file for the app to run.

"harvie wang" <qu*****@gmail. com> wrote in message
news:5e******** *************** **@news.microso ft.com...
Hello Nicholas Paldino [.NET/C# MVP],
:) thanks!
I learn C# when I using system.configur ation ,I can't find where the
Settings saved
so I want to know the .Net Framework how to do this
Harvie,

The configuration settings are a combination of the settings in
the config file for the application, as well as the user, machine,
and
enterprise settings for the framework.
Why do you want to access them outside of the
ConfigurationSe ttings class? What are you trying to do?
"harvie wang" <qu*****@gmail. com> wrote in message
news:5e******** *************** **@news.microso ft.com...

In .Net,Through System.Configur ation.Configura tionSettings Get
Application's Settings
I can't find the Configuration Value from Register
Where the ConfigurationSe ttings saved?
How to Read it except System.Configur ation?
Thanks!
Harvie

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2124
by: serge calderara | last post by:
Dear all, I have define a configuration file for my application with different section groups and settings belonging to each individual group like as follow : ===================================================== <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections>
6
2457
by: Rob Mayo | last post by:
I'm developing a server control for our intranet. This control is only going to be used in two applications on the server, but they must be separate. It has been established that these 2 apps will use a specifically named key from their respective web.config's. I want the control to use that key regardless of which application it's being used on. How can I get that key from the application? I considered creating a config file for the...
5
3171
by: Adrian | last post by:
Is there a way (understandably non-portable) to get the call stack from within a function? That is, assuming the application has been compiled with symbols, get the list of calling function names (similar to dbx "where" command"). I am working with IBM compiler and AIX but any other OS/compiler solution would be interesting as well. To answer the inevitable question why I want this, I am writing a simple profiler for my library....
2
6402
by: Mythran | last post by:
public static void Main() { string sectionName = "system.web"; object settings = ConfigurationSettings.GetConfig(sectionName); Console.WriteLine( settings == null ? "(null)" : settings.GetType().ToString() ); }
4
1563
by: Andrew | last post by:
Hello, friends, I have two questions: (1) In asp.net, where is the best place to store DB connection string? (We have .dll to handle all DB queries.) (2) Any sample source code for client side calendar? (We tried web control calendar. But, each time we selected a date/changed year or month, it would go back to web server. It would increase a lot network traffic.)
10
2830
by: Brett | last post by:
If I have many hard coded values such as file paths, file names, timeouts, etc, where is the best place to define them? Meaning, in the case something needs changing for example, rather than running down all the subs or functions that may contain these values, I'd like one place to change them and have that changed reflected in the subs or functions that use those values. I'd like to avoid globals; keeping the values private to only those...
4
1265
by: Nikolay Petrov | last post by:
I have an class library, which I shared with some of my apps. Some of them are Winfroms apps, others are ASP .NET. How could I check from a method in my library, is it called form an Winforms or ASP .NET? tnx
1
5811
by: Ken | last post by:
I'm currently using 1.1. Is there any way using the value of a ConfigurationSettings.AppSettings as a key of ConfigurationSettings.AppSettings.Tosting( )]? for example in web.config <add key="company" value="Hyundai" /> <add key="Hyundai" value="sonata" />
2
5324
by: mark4asp | last post by:
In trying to get the C# conversion code for Head First Design Patterns to work I came accross a number of warnings. e.g. Warning Number: 10 Description: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' E:\code\HeadFirstDesignPatternsInCSharp\Decorator.Starbuzz\Expresso.cs Line: 31
0
8352
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8802
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8697
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.