Multiple appSerttings?

  • Thread starter Thread starter musosdev
  • Start date Start date
M

musosdev

Hi

I'm wondering if it's possible to split my application settings into
multiple files?

Currently, I have <appSettings configfile="blah" /> in my web.config.

What I wanted to do though was split the file down, so I could have like
basic.config, errors.config, etc - each with <appSettings> and a collection
<add key lines.

However, I can't add multiple appSettings lines to my web.config, so I'm
wondering if it's possible!?

Thanks


Dan
 
Apologies for posting this 3 times!! The forum told me there was an error and
the message wasn't posted.

Sorry :/
 
There is no "out of the box" way to do this. You can, of course, write your
own configuration handlers. I am not sure how deep this gets, as I would
imagine you cannot inherit from the default handler. If I am wrong, it makes
things a bit easier, but I would not say easy.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
Back
Top