Hi,
Mark Rae wrote:
> <> wrote in message
> news: ps.com...
>
>
>>I need to store a few keys in the web.config file, so I was thinking to
>>add my own section like:
>>
>><MySection>
>><MySection1 key1="blahblah" key2="asdf" />
>><MySection2 key1="qwer" key2="zxcv" />
>></MySection>
>>
>>But wherever I place this, I get an error of "Unrecognized
>>configuration section".
>>
>>Is it possible or not ?
>
>
> I don't think so...
Yes, it is. See Mark's reply in this thread.
> What possible value would this add anyway? Store your keys in
> <appSettings> - that's what it's for...
appSettings only allows key-value pairs. That's only sufficient for
limited settings. If you need something more solid, you need to define
your own schema.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch