configurationsection Questions
8
I'm working with C#, Framework 3.5 (VS 2008).
I'm using the ConfigurationManager to load a config (not the default app.config file) into a Configuration object.
Using the Configuration class, I w...
Begga asked 11/8, 2010 at 18:3
2
Solved
I have a appsettings.json that look like this
{
"AppName": "my-app-service",
"MyModel": {
"MyList": [{
"CountryCode": "jp"
},{
&quo...
Schwenk asked 29/7, 2020 at 22:53
8
Solved
I've created a custom configuration section using XSD. In order to parse the config file that follows this new schema, I load the resource (my .xsd file) with this:
public partial class Monitoring...
Hypodermic asked 18/6, 2010 at 10:11
2
Solved
In a web application, I want to be able to define some mapping using a config section like this:
<configuration>
<configSections>
<sectionGroup name="MyCustomer">
<section ...
Oberammergau asked 14/4, 2011 at 10:1
5
I've been scouring the net for the last 3 days, and can't find any reference to this question. I've created a custom configuration class to be used with my app.config. Everything works fine. The pr...
Wiedmann asked 20/2, 2009 at 3:4
2
Solved
I am trying to learn how to use the ConfigurationSection class. I used to use the IConfigurationSectionHandler but released that it has been depreciated. So being a good lad I am trying the "correc...
Dibranchiate asked 17/5, 2011 at 21:5
3
Solved
I wanna read/write (and save) application's configuration file in program
The app.config is like this:
<configuration>
<configSections>
<section name="AdWordsApi" type="System.Co...
Hypoploid asked 21/12, 2011 at 9:30
4
Solved
So I've got a ConfigurationSection/ConfigurationElementCollection that has a configuration like this:
<mimeFormats>
<add mimeFormat="text/html" />
</mimeFormats>
And here is h...
Spina asked 9/5, 2011 at 16:37
1
Is there any 'nice' way to read configuration section group of IIS7 by using WebConfigurationManager o anything?
I tried to read the authorization section but WebConfigurationManager.GetSection() r...
Mannes asked 6/9, 2010 at 13:25
2
Solved
I want to use my app config to store the settings for 2 companys, and i'd prefer if it was possible to use a section to seperate the data for one from the other rather then giving them diffrent key...
Corinnacorinne asked 12/1, 2011 at 15:40
1
I am writing a configuration system in which the app.config file is dynamically constructed from various config fragments distributed across multiple locations. The system currently works as follow...
Weiland asked 6/7, 2009 at 15:12
1
Solved
Here's the idea I had:
I want a small executable to have an app.config file with multiple sections that are situated under the sectionGroup "applicationSettings" (not "appSettings", I don't need ...
Pilgrim asked 19/2, 2013 at 17:37
1
I use IConfigurationSectionHandler interface to get information about my custom config section. But it's deprecated and I want to use ConfigurationSection instead.
How to create custom Configurati...
Enrichment asked 2/11, 2011 at 15:40
1
Solved
It appears that ConfigurationElement of TimeSpan can't handle values larger than 23:59:59. Are there any workarounds? Is subclassing TimeSpan, and making a new TimeSpanValidatorAttribute even going...
Henotheism asked 30/6, 2010 at 0:16
1
Solved
I have just rolled a custom configuration section, created an accompanying schema document for Intellisense and added it to the Web.config's Schemas property as per Michael Stum's answer to another...
Phidias asked 7/6, 2010 at 0:3
3
Solved
I have a console application that is trying to load a CustomConfigurationSection from a web.config file.
The custom configuration section has a custom configuration element that is required. This...
Sematic asked 18/3, 2010 at 15:24
1
Solved
I have a class containing the following ConfigurationSection:
namespace DummyConsole {
class TestingComponentSettings: ConfigurationSection {
[ConfigurationProperty("waitForTimeSeconds", IsRequ...
Feet asked 21/1, 2010 at 13:30
1
Solved
I have the following code
var section = new CustomConfigurationSection();
section.SectionInformation.Type = "System.Configuration.NameValueFileSectionHandler";
section.SectionInformation.SetRawXml...
Flavory asked 31/12, 2009 at 11:27
2
Solved
I'm getting the following exeption:
"Sections must only appear once per config file. See the help topic for exceptions. "
my configuration file look like this:
<configSections>
<section...
Moslemism asked 20/11, 2009 at 4:34
1
© 2022 - 2024 — McMap. All rights reserved.