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
2
votes
1 answer
How better to map configuration elements to application objects?
I have a .NET application which has a custom configuration to re-construct some classes on startup. That's not a plain (de)serialization, that's more complex and mixed.
class FooElement : ConfigurationElement
{
static ConfigurationProperty…

abatishchev
- 98,240
- 88
- 296
- 433
2
votes
3 answers
"Type is not defined" when I want to add my custom class as settings type
I want to add this class as setting's type:
using System.Collections.Generic;
using System.Configuration;
namespace MY_PROJECT.SUB_PROJECT
{
[SettingsSerializeAs(SettingsSerializeAs.Xml)]
public class Configs: List
{
…

Tomáš Zato
- 50,171
- 52
- 268
- 778
2
votes
1 answer
Change setting within a "ClientSettingsSection" with C#
Is it possible to change values of settings within a ClientSettingsSection (System.Configuration.ClientSettingsSection) in a exe-configuration? Unfornately the settings in the ClientSettingsSection collection are read-only !

Elmex
- 3,331
- 7
- 40
- 64
2
votes
0 answers
System::Configuration - Can't create/save user.config in AppData/Local
I have been searching high and low for the proper way to use System::Configuration to create and modify a user.config file located under AppData/Local/myapplicationname/. I use the configuration manager to open a local user level configuration…

pcdangio
- 294
- 2
- 13
2
votes
0 answers
Windows Phone 8 System.Configuration
I am developing a windows Phone application with Multiple projects in it. But, I am facing problem to have App.config file and get the details from this config file to all the projects

Pramod kumar
- 23
- 3
2
votes
3 answers
ConfigurationElementCollection with primitive types
I'm working with the System.Configuration namespace types to store configuration for my application. I need to store a collection of primitive types (System.Double) as part of that configuration. It seems like overkill to create the…

Brian Triplett
- 3,462
- 6
- 35
- 61
2
votes
3 answers
Need to create a dynamic ConfigurationSection that also holds the type
I need to create a configuration section, that is able to store key-value pairs in an app.config file and the key-value pairs can be added runtime regardless of their type. It is also important that the value keeps its original type. I need to…

gyurisc
- 11,234
- 16
- 68
- 102
2
votes
2 answers
Avoid repeating property name 3 times using ConfigurationPropertyAttribute
Repeating the ConfigurationPropertyAttribute name three times in the code really bothers me.
It so easy to miss a misspelling or copy/paste a property and forget to update one instance of the name.
Declaring a constant only solves one of these…

DanO
- 2,526
- 2
- 32
- 38
1
vote
2 answers
Log4Net for MonoTouch
I'm attempting to build Log4Net for MonoTouch but the assemblies required also need to be built for MonoTouch including System.Configuration and I don't have this source.
Has anyone had any luck building Log4Net for MonoTouch ?

wheels53
- 719
- 1
- 7
- 21
1
vote
1 answer
Can't write ./config file for installing NIX
I'm trying to install NIX to run a software called ARTIQ and am following the instructions given in this page.
https://m-labs.hk/artiq/manual/installing.html#installing-via-nix-linux
I am required to provide a cryptographic signature by amending…

Hanros94
- 13
- 4
1
vote
0 answers
How to resolve the error - Could not AOT the assembly ... System.Configuration.dll?
I have a Xamarin Forms project with an iOS and UWP project. When building the iOS project I get the following error:
Could not AOT the assembly
…

Ryan Gaudion
- 695
- 1
- 8
- 22
1
vote
0 answers
Is it posible to use System.Configuration to Write to a Network Location
due to our applications being moved onto a Citrix VM platform I need to move our application settings config files from C:\ProgramData to an alternative location. With this particular application each user has their own config file, which is…

Paul Johnson
- 213
- 3
- 14
1
vote
1 answer
Can not read user secrets on hosting server
I have a problem to my .net core application.
This problem is user secret json file can not read.
Application work fine on development but application gives me error on release version in hosting server.
Error code some bellow
Application startup…

Avoraa
- 95
- 1
- 2
- 8
1
vote
1 answer
Preserve formatting on Configuration.Save()
I have custom ConfigurationSection and call Configuration.Save() after some modifications against it:
var config = ConfigurationManager.OpenMappedExeConfiguration(
new ExeConfigurationFileMap() { ExeConfigFilename = "My.config" },
…

abatishchev
- 98,240
- 88
- 296
- 433
1
vote
0 answers
NameValueCollection to ConfigurationSection
In my projet, I have an App.config where I store all the configuration. I have used several sections to have a clean and readable App.config file. Each section deals with a certain controller. Here is an example of what I have in my file…

SebDev43
- 21
- 3