Represents a section within a configuration file.
Questions tagged [configurationsection]
122 questions
1
vote
1 answer
ConfigurationSection with nested ConfigurationElementCollections
Hopefully, I can present this problem to the brain trust of this site and someone will see my mistake.
I am working on a project where email text needs to be "mail merged" with information found in the properties of various internal classes. A…

JConnell
- 93
- 1
- 4
1
vote
1 answer
How to use a custom section handler without implementing the IConfigurationSectionHandler interface?
I would like to create a section in my web.config file like this:
\\123.123.132.123\c$\test\folder
\\123.123.132.123\c$\test\folder
I am searching for alternatives, I would…

JSBach
- 4,679
- 8
- 51
- 98
1
vote
1 answer
Can you override system.serviceModel configuration section?
We are trying to create a "proxy" class that would serve the WCF service with its configuration properties.
Because we can't store those properties in the app.config file, i'm looking for a way to "proxy" it out and use custom configurationSection…

Or A
- 1,789
- 5
- 29
- 55
1
vote
1 answer
Problems with custom configuration section handler
So im completely new to using the app-config file , im trying to create a custom configuration handler so that I can read multiple values from the same key , I followed the documentation on the Microsoft website but ive run into a problem.
Every…

Steve2056726
- 457
- 2
- 6
- 20
1
vote
2 answers
How do I save custom configuration sections during runtime?
My application allows the user to add additional items to a combobox that get saved in a custom configuration section. The issue is that the save() call fails because my app is installed to C:/Program Files... which do not have read-write…

joepetrakovich
- 1,344
- 3
- 24
- 42
1
vote
1 answer
Reading app.config section name
In console application I'm trying to get section key value pair but I couldn't.
There are two ways to do this:
ConfigurationSection
IConfigurationSectionHandler
But the code below is generating this error: Configuration system failed to initialize…

uzay95
- 16,052
- 31
- 116
- 182
0
votes
1 answer
Is there a way to import a custom configuration section?
I would like to know if there is a way to make several custom configuration sections in subprojects to append to each other?
For example, consider the project structure:
Solution\
MainGUI\
App.config
Settings\
…

Nap
- 8,096
- 13
- 74
- 117
0
votes
2 answers
GetSection object cannot be cast to IDictionary<>
I hope I'm just missing something simple. I need to read/write to a section of my exe.config file. I have this in my code:
var appConfiguration = ConfigurationManager.OpenExeConfiguration("Mytest.Console.exe");
var fileEnvironment =…

JimBoone
- 554
- 1
- 7
- 27
0
votes
1 answer
How to specify alternate .config file programmatically?
I have a custom configuration section, and i'm constructing some unit tests for it. I'd like to be able to specify, somehow, different .config files programatically to test. Is there a way to do this?

Didaxis
- 8,486
- 7
- 52
- 89
0
votes
1 answer
How to read an Internal ConfigurationSection from Web.Config in ASP.NET
I am trying to read a Microsoft defined ConfigurationSection:
Microsoft.ApplicationServer.Caching.DataCacheClientSection
but the type is internal so I cannot access it in the conventional way.
i.e.
var dataCacheClientSection =…

Paul Hiles
- 9,558
- 7
- 51
- 76
0
votes
1 answer
C# can i keep the config section handlers in a different assembly?
I have a console app client, which is calling a method on another assembly, this other assembly requires some configuration info to be initialized, can i keep the section handlers of such configs in the assembly itself? and not expose to the console…

user1056145
- 1
- 1
0
votes
1 answer
How to handle ConfigurationSection containing unsupported properties in .NET 4.8?
How can I load a ConfigurationSection when the config file contains properties that are no longer supported?
If I version a System.Configuration.ConfigurationSection by removing a ConfigurationProperty that is no longer supported by my product, is…

r_h_w
- 13
- 4
0
votes
0 answers
Update ConfigurationSection with Xpaths - what's the best way?
Since a few days i'm working with ConfigurationSection. I was dealing with multiple config files with different extensions. Making long story short, We've decided to store some configs as Xpaths, and the question is: what is the best way to update…

burgund
- 357
- 1
- 5
- 12
0
votes
1 answer
Programatically adding sections to the configuration read from app.config
I am working on a component/assembly that is to be distributed to other developers and included in their systems.
In order to minimize the work they have to do, all configuration is done in a seperate file (my.config).
My current problem is that a…

Joda
- 12,796
- 10
- 34
- 33
0
votes
0 answers
web config error running asp.net app on Azure App Service
I am very new to Azure and have deployed a .net application to an Azure web Service over FTP and am getting the below error in the web config at the top line of the section below:
It is an error to use a section registered as…

Stewart Alan
- 1,521
- 5
- 23
- 45