common config file

O

orenl

I have a server application which can be called by web services or
directly from the command line.
the solution has a website with web.config and a consoleProject with
app.config.
I need to work with a single config file (preventing duplication).
how can I do this? how can I load a common config file (that belongs
to a common project)?
 
M

Michael Nemtsev

Hello orenl,

You can use the following section "<appSettings file="YourCommionData.config"/>"
and put all common logic to the separate file

o> I have a server application which can be called by web services or
o> directly from the command line.
o> the solution has a website with web.config and a consoleProject with
o> app.config.
o> I need to work with a single config file (preventing duplication).
o> how can I do this? how can I load a common config file (that belongs
o> to a common project)?
---
WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 

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

Top