user338195
user338195

Reputation:

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>

Upvotes: 0

Views: 1455

Answers (2)

Pranay Rana
Pranay Rana

Reputation: 176896

Read/Write App.config with .NET 2.0/Enterprise Link

Upvotes: 1

Stefan Egli
Stefan Egli

Reputation: 17018

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.

Upvotes: 4

Related Questions