Re: multiple same section in app.config
- From: Droopy <droopytoonnospam@xxxxxxxxxxx>
- Date: 18 Sep 2006 11:14:45 GMT
"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:uTAAXKO2GHA.4164@xxxxxxxxxxxxxxxxxxxx:
Droopy,
Well, it will, but you have to have one root element that is not
repeated.
So I must miss something !
I tried with the example provided in MSDN :
<myCustomGroup>
<myCustomSection myAttrib1="Clowns">
<myChildSection
myChildAttrib1="Zippy"
myChildAttrib2="Michael Zawondy "/>
</myCustomSection>
</myCustomGroup>
It works of course.
When I try to add a 2nd element :
<myCustomGroup>
<myCustomSection myAttrib1="Clowns">
<myChildSection
myChildAttrib1="Zippy"
myChildAttrib2="Michael Zawondy "/>
</myCustomSection>
<myCustomSection myAttrib1="Clowns2">
<myChildSection
myChildAttrib1="Zippy"
myChildAttrib2="Michael Zawondy "/>
</myCustomSection>
</myCustomGroup>
I got the same exception = "Sections must only appear once per config
file".
.
- Follow-Ups:
- Re: multiple same section in app.config
- From: Droopy
- Re: multiple same section in app.config
- References:
- multiple same section in app.config
- From: Droopy
- Re: multiple same section in app.config
- From: Nicholas Paldino [.NET/C# MVP]
- Re: multiple same section in app.config
- From: Droopy
- Re: multiple same section in app.config
- From: Droopy
- Re: multiple same section in app.config
- From: Nicholas Paldino [.NET/C# MVP]
- multiple same section in app.config
- Prev by Date: Re: select directory on remote machine using WMI
- Next by Date: Logged in User without domain
- Previous by thread: Re: multiple same section in app.config
- Next by thread: Re: multiple same section in app.config
- Index(es):
Relevant Pages
|