I'm trying to store something like this in my web.config file:
<authInfoGrou p>
<authInfo UserId="uid1" Passport="pwd1" Expiry="" />
<authInfo UserId="uid2" Passport="pwd2" Expiry="" />
</authInfoGroup>
To do so, I've created the following section in my web.config:
<configSections >
<sectionGroup name="authInfoG roup">
<section name="authInfo"
type="System.Co nfiguration.Sin gleTagSectionHa ndler, System,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
</sectionGroup>
</configSections>
However, this fails and here's the error desc.:
Sections must only appear once per config file. See the help topic
<location> for exceptions
However, I need to keep the above-mentioned data in my web.config file; and
obviously, there are always more than one authInfo that I'm going to keep.
Any idea?
Thanks in advance,
Mehdi
<authInfoGrou p>
<authInfo UserId="uid1" Passport="pwd1" Expiry="" />
<authInfo UserId="uid2" Passport="pwd2" Expiry="" />
</authInfoGroup>
To do so, I've created the following section in my web.config:
<configSections >
<sectionGroup name="authInfoG roup">
<section name="authInfo"
type="System.Co nfiguration.Sin gleTagSectionHa ndler, System,
Version=1.0.500 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9"/>
</sectionGroup>
</configSections>
However, this fails and here's the error desc.:
Sections must only appear once per config file. See the help topic
<location> for exceptions
However, I need to keep the above-mentioned data in my web.config file; and
obviously, there are always more than one authInfo that I'm going to keep.
Any idea?
Thanks in advance,
Mehdi
Comment