Multiple appSerttings?

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
 
M

musosdev

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

Sorry :/
 
C

Cowboy \(Gregory A Beamer\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top