Questions tagged [custom-configuration]
75 questions
0
votes
1 answer
Reading from custom configuration in App.config
I am having problem reading from App.config.
This is my App.config:
…

no9
- 6,424
- 25
- 76
- 115
0
votes
1 answer
C#: Nested custom config not working after adding a new attribute
I have my very nested custom configuration implementation working until I wanted to add a new attribute to one of the nested config element collection. Here is my working config:
…

Sri Reddy
- 6,832
- 20
- 70
- 112
0
votes
1 answer
Not getting VS2013 Intellisense for custom config even with schema defined
I have custom config section which I can read correctly. Now I wanted Intellisense for it.
I have created my schema by first creating an XML with only my config section, and then got VS2013 to generate the Schema file for me. Named it…

Frank Fajardo
- 7,034
- 1
- 29
- 47
0
votes
2 answers
Weird error while accessing an element in a ConfigurationElementCollection
I have a ConfigurationSection with a ConfigurationElementCollection like below:
…

usp
- 797
- 3
- 10
- 24
0
votes
1 answer
User config section with a list
I know that what I am trying to do is possible, because I have done it - I just no longer have access to the code that I did it in. What is more, I cannot find using Google the details for how to do it.
I have a config file containing something like…

Schroedingers Cat
- 3,099
- 1
- 15
- 33
0
votes
2 answers
ConfigurationSectionCollection contains many system names besides my custom section
Here is my config file:

shda
- 729
- 7
- 19
0
votes
1 answer
ConfigurationManager - Same App.config structure different projects - Sharing the class
Solved as below!! - I have multiple WPF projects with individual App.Config with custom sections. All custom sections have the same structure.
For one project, I used ConfigurationManager and created Custom ConfigurationSection,…

ShipOfTheseus
- 234
- 1
- 10
0
votes
2 answers
Something missing in my C# custom config implementation
I've tried to write an application with custom config implementation - for this purpose I had written down a small dummy app which I could later follow. But, I'm just not able to load the config. Any ideas on what I'm missing here would be of real…

Suyash Khandwe
- 386
- 3
- 11
0
votes
1 answer
Custom configuration section in Azure Cloud Service
Is it possible to a custom configuration section inside of an Azure Cloud Service Configuration, the same way you would in a regular ASP.NET website?
I.e in a regular ASP.NET site your Web.Config would have something like this:
…

marvc1
- 3,641
- 3
- 25
- 34
0
votes
1 answer
ConfigurationErrorsException in a console app
The entry 'MyCustomElement' has already been added.
C:\Projects\Sandbox\Sandbox.Console\bin\Debug\Sandbox.Console.vshost.exe.config line 52
I'm a bit stumped on this one. This console app has had quite a few custom config sections added over the…

Alexis Abril
- 6,389
- 6
- 33
- 53
0
votes
2 answers
What is the correct Custom Configuration code for my XML?
Assuming the following XML, what is the correct Custom Configuration code?:

theBoringCoder
- 233
- 2
- 14
0
votes
1 answer
How to retrieve items as a collection from a custom configuration section of an app.config file?
I have a custom configuration section defined in my app.config file. I need to get the tags and the sub tags within the created custom configuration section as a collection.
My config section is as follows,
…

Harun
- 5,109
- 4
- 38
- 60
0
votes
2 answers
Custom configuration sections - KISS method
I have an app.config section I want to define, as a simple IDictionary> that would look something like this in the app.config file:
…

Jeremy Holovacs
- 22,480
- 33
- 117
- 254
-1
votes
1 answer
Custom Config Section in MVC4 empty values
i have this class
public class HeaderSampleData : ConfigurationSection
{
[ConfigurationProperty("CompanyId", IsRequired = true)]
public int CompanyId { get; set; }
[ConfigurationProperty("ApiKey", IsRequired = true)]
public Guid…

Amir Magdy
- 188
- 9
-2
votes
1 answer
How to write the custom config section for nested list in c#.net
Hi can any one suggest the way to write the custom configuration class for writing the configuration as follows in my app.config file.

Neeraj Kumar Gupta
- 2,157
- 7
- 30
- 58