Search code examples
c#web-configconfigapp-config

Can't add new sections into app.config


Each time I try to add a very basic section into app.config I get the following error:

Configuration system failed to initialize.

I have looked at the variety of articles but none of those has helped so far. Any ideas what is going wrong?

Edit:

  <configSections>
    <section name="Test" type="TestType"/>
  </configSections>

  <Test>  

  </Test>

Solution

  • Do you define a configuration section handler? Here is a tutorial:

    http://support.microsoft.com/kb/309045

    Edit: (Based on your updated question) I recommend to specify the type with the fully qualified assembly name.