Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8772119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:57:45+00:00 2026-06-13T17:57:45+00:00

I am trying to create a custom config section to load the list of

  • 0

I am trying to create a custom config section to load the list of ‘ovens’ my application monitors. This is my first experience with config sections and I have tried to follow the examples; but, I can’t figure out what I am missing.

When I try to get the config section I get the following exception:

An error occurred creating the configuration section handler for BurnIn: Could not load type ‘BurnIn.UI.BurnInConfigurationSection’ from assembly ‘System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. (C:\MKS\BurnIn\PC_SW\bin\BurnIn.UI.vshost.exe.config line 8)

In my main I have tried:
System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
if (config.Sections[BurnInSection] == null)
…

BurnInConfigurationSection burnInConfigSection = config.GetSection(BurnInSection) as BurnInConfigurationSection; 

BurnInConfigurationSection burnInConfigSection = ConfigurationManager.GetSection(BurnInSection) as BurnInConfigurationSection;

Everything seems to result in the same exception

When I look at config.FilePath it is “C:\MKS\BurnIn\PC_SW\bin\BurnIn.UI.vshost.exe.config” which I have verified matches the app.config file.

Here are my configuration classes:

namespace BurnIn.UI
{
/// <summary>
/// BurnIn Application configuration section in app.config
/// </summary>
public class BurnInConfigurationSection : ConfigurationSection
{
    [ConfigurationProperty("Ovens", IsDefaultCollection = false)]
    [ConfigurationCollection(typeof(OvenCollection),
        AddItemName = "add",
        ClearItemsName = "clear",
        RemoveItemName = "remove")]
    public OvenCollection Ovens
    {
        get { return (OvenCollection)base["Ovens"]; }
        set { base["Ovens"] = value; }
    }
}

/// <summary>
/// Oven configuration information
/// </summary>
public class OvenConfig : ConfigurationElement
{
    public OvenConfig() { }

    public OvenConfig(string nickName, string mesName, string ip, int slotCount)
    {
        NickName = nickName;
        MesName = mesName;
        IP = ip;
        SlotCount = slotCount;
    }

    [ConfigurationProperty("NickName", DefaultValue = "OvenName", IsRequired = true, IsKey = true)]
    public string NickName
    {
        get { return (string)this["NickName"]; }
        set { this["NickName"] = value; }
    }

    [ConfigurationProperty("MesName", DefaultValue = "MesName", IsRequired = true, IsKey = true)]
    public string MesName
    {
        get { return (string)this["MesName"]; }
        set { this["MesName"] = value; }
    }

    [ConfigurationProperty("IP", DefaultValue = "10.130.110.20", IsRequired = true, IsKey = false)]
    public string IP
    {
        get { return (string)this["IP"]; }
        set { this["IP"] = value; }
    }

    [ConfigurationProperty("SlotCount", DefaultValue = "20", IsRequired = true, IsKey = false)]
    public int SlotCount
    {
        get { return (int)this["SlotCount"]; }
        set { this["SlotCount"] = value; }
    }

}
/// <summary>
/// Collection of Oven Configs
/// </summary>
public class OvenCollection : ConfigurationElementCollection
{
    public OvenCollection()
    {
    }

    public OvenConfig this[int index]
    {
        get { return (OvenConfig)BaseGet(index); }
        set
        {
            if (BaseGet(index) != null)
            {
                BaseRemoveAt(index);
            }
            BaseAdd(index, value);
        }
    }

    public void Add(OvenConfig ovenConfig)
    {
        BaseAdd(ovenConfig);
    }

    public void Clear()
    {
        BaseClear();
    }

    protected override ConfigurationElement CreateNewElement()
    {
        return new OvenConfig();
    }

    protected override object GetElementKey(ConfigurationElement element)
    {
        return ((OvenConfig)element).NickName;
    }

    public void Remove(OvenConfig ovenConfig)
    {
        BaseRemove(ovenConfig.NickName);
    }

    public void RemoveAt(int index)
    {
        BaseRemoveAt(index);
    }

    public void Remove(string name)
    {
        BaseRemove(name);
    }
}
}

Here is my app.config:

<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="Biotronik.NGMP.DAL.Sources.DalBaseSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
    <section name="BurnIn" type="BurnIn.UI.BurnInConfigurationSection"/>
  </configSections>
  <applicationSettings>
    <Biotronik.NGMP.DAL.Sources.DalBaseSettings>
      <setting name="ConfigFileName" serializeAs="String">
        <value>DalConfig.xml</value>
      </setting>
      <setting name="MappingFileName" serializeAs="String">
        <value>BurnInTestPlanMap.tpx</value>
      </setting>
    </Biotronik.NGMP.DAL.Sources.DalBaseSettings>
  </applicationSettings>
  <connectionStrings>
    <add name="BurnInConnection" connectionString="metadata=res://*/BurnIn.csdl|res://*/BurnIn.ssdl|res://*/BurnIn.msl;provider=Oracle.DataAccess.Client;provider connection string=&quot;DATA SOURCE=XXXX;PASSWORD=xxxx;PERSIST SECURITY INFO=True;USER ID=XXXX&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
  <log4net configSource="BurnInLog4net.config"/>
  <BurnIn>
    <Ovens>
      <add NickName="Mark's Oven" MesName="MESBOven" IP="10.130.110.20" SlotCount="5"/>
      <add NickName="Real Oven" MesName="MESOven1" IP="10.130.110.50" SlotCount="20"/>
    </Ovens>
    </BurnIn>
  <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
</configuration>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:57:47+00:00Added an answer on June 13, 2026 at 5:57 pm

    You have put wrong configuration section type name here:

    <section name="Biotronik.NGMP.DAL.Sources.DalBaseSettings"  
        type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0,  
        Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    

    You should use name of your custom configuration section type here:

    type="BurnIn.UI.BurnInConfigurationSection, AssemblyWhereThisTypeIsDeclared"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create custom section in app.config file <?xml version=1.0 encoding=utf-8 ?>
I am trying to create a custom User library in CodeIgniter. Inside this library
I'm trying to create a custom component to extend PrimeFaces. I have a simple
I am trying to create a custom table using custom module. I have been
I've been trying to create a custom renderer based on this Yehuda Katz's blog
Im trying to create a custom version of the RequiredAttribute to replace the built
I'm trying to create a custom TabItem that is dynamically added to a TabControl
I'm trying to create a custom SELECT query to find my Personal Best races
I'm trying to create a custom form input that utilizes some images, it should
I am trying to create a custom popup view that can be called from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.