1 configuration file for many applications/aspx/webservice

  • Thread starter Thread starter Søren Reinke
  • Start date Start date
S

Søren Reinke

Hi there

I am having a little problem.

At the company i work in, we are working on a bunch of applications for a
server, and also webservices and aspx pages.

The main problem is i would like to be able to configurate them all from 1
file.

The reason is that we have a test a staging and a live server.
And depending on which server the programs are running on the need to
connect to different SQL servers, different webservice servers and more.

How can i solve this problem ?

If it would have been C/c++ i would have included a config file from a
specific position and done some preprocessing.
 
ASP.Net configuration files are web.config, these can be placed in the root
of the web site, and any sub-folder (to override the behaviour of the config
in the root).

The dotNet config files cascade from machine.config all the way down to
application level.

Have a look in the help docs for web.config

Hope this helps.
 
ASP.Net configuration files are web.config, these can be placed in the
root
of the web site, and any sub-folder (to override the behaviour of the
config
in the root).

The problem is not all programs needing this config files run on IIS, but
just as plain programs.
The dotNet config files cascade from machine.config all the way down to
application level.

Have a look in the help docs for web.config

Do you have some examples or link to any ?

the MSDN documentation is pretty bad (i miss Javadoc)
 
Back
Top