Questions tagged [custom-configuration]
75 questions
4
votes
1 answer
Custom configurations with C#
I have an App.config with custom configurations

Cristhian Boujon
- 4,060
- 13
- 51
- 90
4
votes
1 answer
ConfigurationManager.GetSection returning null for appparently correct 'path'
This is regarding a web.config file
Here's the ConfigSection

user129345
- 453
- 2
- 8
- 19
3
votes
2 answers
Error reading Custom Configuration Section: No parameterless constructor defined for this object
Having a horrible time reading a custom configuration section from web.config:
I am using Configuration Section Designer (http://csd.codeplex.com/).
UPDATE:
here is the error I am getting:
System.Configuration.ConfigurationErrorsException: An error…

xdhmoore
- 8,935
- 11
- 47
- 90
3
votes
2 answers
Create or edit custom configuration section at runtime
I have a custom configuration section, something like:
I'm trying to figure out how I can add/edit this section in the…

fearofawhackplanet
- 52,166
- 53
- 160
- 253
3
votes
2 answers
Nesting custom configuration element collections
I'm trying to implement a custom configuration solution for an asp.net project I'm currently involved in.
Here is the configuration declaration

Peter Wright
- 79
- 1
- 7
3
votes
1 answer
Reading custom config file in WebForms app
I have classes to read in a custom config file, which work in my (sandbox) MVC app, and in a console app. However, it fails to read anything except the top level section when it's run from the web forms app that actually needs it. They all target…

kerry_hood
- 33
- 4
2
votes
2 answers
How to Configure App.config file in c#
I am using the Visual Studio 2005, and i created one application with "App.config" file.
when i try to edit and add new value to that App.config file it shows an error please help me..
My app.config file contains:

Ramesh
- 1,073
- 6
- 24
- 53
2
votes
1 answer
Can custom applicationSettings sections be configured using the IIS 7 Configuration Editor?
I'd like to edit application-specific settings by using the IIS 7 Configuration Editor. The settings are stored in an applicationSettings section, the kind automatically added for you when using Visual Studio to add settings to a project. My section…

Paul
- 420
- 1
- 5
- 18
2
votes
0 answers
ConfigurationSectionGroup.Sections properties always empty
It's a simple windows forms application, one screen and nothing more.
I've created my own ConfigurationSection handler
Assembly RemoteFactoryManager.Utils.dll
public class EnvironmentSection : ConfigurationSection
{
public EnvironmentSection() {…

Valmir Cinquini
- 371
- 7
- 17
2
votes
3 answers
Several custom configuration in #if directive
I need the following logic
#if (DEV || QA || RELEASE)
//add when dev or qa or release configuration
#endif
Is it possible in c#?

Pavel
- 1,015
- 3
- 13
- 27
2
votes
0 answers
ConfigurationElementCollection with two ConfigurationElementCollections children
I'm trying to make a custom .NET configuration that I can load into my application. I would like to have a configuration like the following:
…

Nyegaard
- 1,309
- 3
- 16
- 24
2
votes
2 answers
How to search custom config section by key
i have custom config section like
…

Thomas
- 33,544
- 126
- 357
- 626
2
votes
1 answer
Custom config section with two differentt child collections
I'm having trouble finding/figuring out how to map the following custom config section:

Paul Fleming
- 24,238
- 8
- 76
- 113
2
votes
2 answers
Migrate Custom ConfigSection in C#
Hello from a long time lurker, first time poster.
I am working on a C# app with a custom config section to save ftp account information. When I come out with a new revision, all the information saved in the previous release is gone.
I've tried using…

tabo
- 21
- 1
1
vote
1 answer
Unrecognized element 'add' error when reading web.config
When I do this ConfigurationManager.GetSection("SectionA/sectionD") I receive this error:
Unrecognized element 'add'
I'd like read all "add" element from this section to create a collection.
…

TheBoubou
- 19,487
- 54
- 148
- 236