The System.Configuration is a .net framework namespace contains the types that provide the programming model for handling configuration data.
Questions tagged [system.configuration]
88 questions
0
votes
0 answers
Configuring instances in Unity Container configured in App.Config at runtime
I have a speciifc configuration problem.

VyshuRam
- 93
- 1
- 10
0
votes
1 answer
error CS0012: The type 'ConnectionStringSettings' is defined in an assembly that is not referenced after upgrading to Visual Studio 2015
I've just upgraded from Visual Studio 2013 Pro to Visual Studio to 2015 (Enterprise), and when I compile my solution, I'm getting the following error:
error CS0012: The type 'ConnectionStringSettings' is defined in an
assembly that is not…

Gyum Fox
- 3,287
- 2
- 41
- 71
0
votes
2 answers
System.Configuration Configuration Manager
I am using System.Configuration in my assembly,
but as soon as I implement the getter/setters
the System.Configuration link on top of the code
gets greyed out (for not used in the assembly)
Configuration & the ConfigurationManager get underlined
red…

mb-nem
- 1
- 1
0
votes
0 answers
Using optional ways to specify configuration using .NET System.Configuration
I have classes coded to parse configuration from a custom app.config using .NET system.configuration library.
It parses this:
I would like to continue to…

tigerbyte
- 107
- 8
0
votes
1 answer
Can only get 8 items of appsettings?
I'm using System.Configuration.ConfigurationManager.AppSettings.["...."]. However, I found that the newly added always got null values when execute
System.Configuration.ConfigurationManager.AppSettings.["new1"] (the…

ca9163d9
- 27,283
- 64
- 210
- 413
0
votes
1 answer
HowTo: Detect .Net Configuration Section instance without Loading into memory?
Does anyone know how to detect if an instance of a configuration section exists in a .net configuration file without actually having to load the configuration section into memory, and without having to parse the xml file manually - ie, using the…
markallanson
0
votes
2 answers
Check if ConfigurationProperty value is not set
Let's say I have a ConfigurationProperty defined this way:
[ConfigurationProperty("TheProp")]
public double TheProp
{
get{//some code}
set{//some code}
}
How do I check if this ConfigurationProperty has a value or not? DefaultValue will not…

Timur Nuriyasov
- 359
- 2
- 16
0
votes
1 answer
How does ConfigurationManager merge or build configurations for a referenced project?
Suppose I have a C# class library project with an app.config file and I reference it an ASP.NET project that has a web.config file. Suppose I have a key in my web.config AppSettings called SmtpServerHostname. If I need the SmtpServerHostname in my…

tacos_tacos_tacos
- 10,277
- 11
- 73
- 126
0
votes
1 answer
Do ConfigurationManager XML Elements support arrays?
I’m using Configuration Manager to store settings in a C# application. I have some individual settings and I have a variable array of settings.
The XML Config looks something like this:
…

Rich Shealer
- 3,362
- 1
- 34
- 59
0
votes
1 answer
Creating a app.config file
I have put together this code and was wondering how to call certain data from a .config or .ini file. I have looked into AppSettings and ConfigurationManager but it’s just too much for the noob brain to compute :-)
I have added the…

user3051236
- 1
- 1
- 2
0
votes
2 answers
Read value based on key from a Web.config section
I am trying to create a function that can return the corresponding value from web.config based on the key provided
For instance, I have these in my Web.config file:
…

Steve
- 1,471
- 7
- 19
- 32
0
votes
3 answers
Best way to store associative array in app.config
I've been working on my software lately and I have been wondering what the best way is to store an associative array.
The only thing I could come up with out of the blue is to do something like this:

Jeffro
- 47
- 1
- 2
- 7
0
votes
2 answers
C# - Creating and managing application specific project files
One of the specifications for an application I'm developing is that it must work with project files.
My problem comes into how I'm going to fulfill this requirement because, since I'm working toward making the application as loose as possible using…

Denis Brat
- 487
- 5
- 14