<configSections> blues

This stumped me for a while and I was not sure what I was doing wrong. Apparently it seems if you don't have the <configSections> element in your app config file as the first thing then you get a weird error saying "Only one <configSections> element allowed …." (see example below). The description is misleading – you will see this error even though you only have one <configSections> element in your config file. To fix this, move the <configSections> as the first element in your app config file and all will be well.

Example error:

{"Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element. (C:\\src\\MyCallApp\\VOIPCall\\bin\\Debug\\VOIPCall.vshost.exe.config line 10)"}

Published by

Amit Bahree

This blog is my personal blog and while it does reflect my experiences in my professional life, this is just my thoughts. Most of the entries are technical though sometimes they can vary from the wacky to even political – however that is quite rare. Quite often, I have been asked what’s up with the “gibberish” and the funny title of the blog? Some people even going the extra step to say that, this is a virus that infected their system (ahem) well. [:D] It actually is quite simple, and if you have still not figured out then check out this link – whats in a name?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.