Questions tagged [configurationsection]

Represents a section within a configuration file.

122 questions
2
votes
0 answers

Consfiguration Section Designer - how to fix broken XSD?

Hi I have used Consfiguration Section Designer to design custom config section some time ago. Recently I found that XSD file generated by the designer is broken, instead of XSD schema it contains just error message (XSD is gone): An exception…
monstro
  • 6,254
  • 10
  • 65
  • 111
2
votes
1 answer

How to define a ConfigurationSection

So this a new one for me. I'm trying to define a ConfigurationSection class in my class library that pulls from App.Config in my WinForms app. I've never done this before but from following examples this is where I've got to. app.config in my…
mat-mcloughlin
  • 6,492
  • 12
  • 45
  • 62
2
votes
1 answer

Obtain Web.config log4net section parameter

I have an application which uses log4net for logging messages. In the web.config there is a section which looks like this: My question is:…
2
votes
2 answers

Add Admin Configuration Tab Images in Magento

I want to add image in Admin Panel -> System -> Configuration -> "Left Menu Tab" ( Here ) just see following image what i want to do : Any Solutions..?? Thanks in Advance.
LuFFy
  • 8,799
  • 10
  • 41
  • 59
2
votes
0 answers

How do I load system.data configuration section when my entry point is a DLL and the hosting application is not .NET

I am working on a .NET DLL that is interacted with via COM in a number of different applications written in Java, Visual Basic 6 and c++. The application is using SQLite for client databases and we are using the system.data DbProviderFactory…
2
votes
1 answer

Retriving information from C# custom config file

Hi I have a configuration file as
2
votes
1 answer

How can I make a custom configuration section that can contain attributes not defined at compile time?

Please note this is not the actual case, but only a simplified example. Lets say I have a Log class, then Sub classed from that I have a file log and a email log. Now lets say that I want to have a configuration section such as Logs> Log…
Paragon
  • 127
  • 10
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
1
vote
1 answer

Not able to save changes to config file

I've been following this Stackoverflow topic. Everything works on the read side. I get a collection which I transform into a dictionary of the section contents. I publish this to other projects. The problems occur when I try to save a modified…
JimBoone
  • 554
  • 1
  • 7
  • 27
1
vote
2 answers

Cannot find my config file

I need to read/write to a config file not related to any exe. I'm trying this: var appConfiguration = ConfigurationManager.OpenMappedExeConfiguration(new ExeConfigurationFileMap() { ExeConfigFilename = "SlamDunkSuper.config" },…
JimBoone
  • 554
  • 1
  • 7
  • 27
1
vote
2 answers

Does there exist any tool to generate strongly-typed classes for .Net configuration?

I'm looking for a tool to generate strongly-typed classes from XML. I would like to define XML configuration (section, ConfigurationElements etc.) and then generate classes that could handle my configuration through ConfigurationManager.
Dmitriy Sosunov
  • 1,075
  • 3
  • 10
  • 25
1
vote
1 answer

Custom configuration section in app.config cannot read xml data as collection in C# application

I have following class extended ApplicationSettingsBase as below public class SMTPServerConfig : ApplicationSettingsBase { private static SMTPServerConfig instance = (SMTPServerConfig)Synchronized(new SMTPServerConfig()); public static…
1
vote
0 answers

How to save actual ConfigurationSection to a given file?

Using information provided in the questions: How do I save a configuration file with a custom configuration section? and Saving custom section to config file I came up to helper method which I add to my ConfigurationSection type: public void…
astrowalker
  • 3,123
  • 3
  • 21
  • 40
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" }, …
1
vote
1 answer

Is a dynamic ConfigurationSection possible in a simple manner?

In .NET 1.0, IConfigurationSectionHandler offered a clean, single method interface to implementing a configuration handler. In .NET 2, ConfigurationSection came along, a great lumbering beast of complexity and static type enforcement, waving a…
Lilith River
  • 16,204
  • 2
  • 44
  • 76
1 2 3
8 9