I'm writing a page that can use a couple of different themes, and I'm going to store some information about each theme in the web.config.
Is it more efficient to create a new sectionGroup and store everything together, or just put everything in appSettings?
configSection solution
<configSections>
<sectionGroup name="SchedulerPage">...
Hello,
in a small c# project, I'm trying to create a simple custom configsection.
I followed the instructions in CodeProject: Unraveling the Mysteries of .NET 2.0 Configuration and everything work nicely... apart from the fact that I don't get xsd validation and intellisense on the config.
My config is shown below.
<configuration>
<c...
I have a custom .NET addin for an application and I am trying to create configSections for the addin's config file. The trouble is I am not able to read that section If load the configuration using the OpenMapperExeConfiguration/OpenExeConfiguration.
Here is my config file(MyTest.dll.config)
<configuration>
<configSections>
<sect...
What is the correct way to pick up the list of "pages" via a class that inherits from System.Configuration.Section if I used a app.config like this?
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="XrbSettings" type="Xrb.UI.XrbSettings,Xrb.UI" />
</configSections>
<XrbSettings>
<pag...
I'm trying to get a custom web.config section to get inherited by an application's web.config in a website subfolder.
The custom section works fine in the main website, but it appears the custom section isn't inherited.
Other elements in the web.config are getting inherited - it's just this custom section which isn't.
Is this by des...
I've a section like this
<mySection type="Namespace.MyClass, AssemblyName" />
in my code I need to create an Instance of MyClass, so what I do is something like that:
string type = GetMySectionType(); // "Namespace.MyClass, AssemblyName"
var typeParts = type.Split(',');
var className = typeParts[0].Trim();
var assemblyName = typePar...