471,599 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

1 configuration file for many applications/aspx/webservice

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.

--
Best regards Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005
Nov 17 '05 #1
4 1267
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.

--
--

Of all words of tongue and pen, the saddest are: "It might have been"
"Søren Reinke" wrote:
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.

--
Best regards Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

Nov 17 '05 #2
> 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)
--
Best regards Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

Hope this helps.

--
--

Of all words of tongue and pen, the saddest are: "It might have been"
"Søren Reinke" wrote:
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.

--
Best regards Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in
PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

Nov 17 '05 #3
Hi Soren,

Don't know whether this applies...you could put all the common settings in
one file and share it across applications. Check out:
http://support.microsoft.com/kb/555396

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"Søren Reinke" wrote:
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.

--
Best regards Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005

Nov 17 '05 #4

"Rakesh Rajan" <rakeshrajan {at} mvps {dot} org> wrote in message
news:AE**********************************@microsof t.com...
Hi Soren,

Don't know whether this applies...you could put all the common settings in
one file and share it across applications. Check out:
http://support.microsoft.com/kb/555396


Hi there

Thanks for the link, that looks like something i can use, i'll try it at
once.

--
Best regards Søren Reinke
www.Xray-Mag.com/ - Your free diving magazin on the net. Download it in PDF
Aug-sept issue of X-RAY Magazine is ready to download:
EGYPT Finding Yolanda Wreck, Celebrate the Seas 2005
Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.