A
Andrew Morton
Is there some simple mechanism for having different web.config files for
development and production environments? For example, on my dev server I use
a different SMTP server from the production machines, so I store that in
web.config and have another one I call web.deploy.config, then manually
rename the latter when I upload it to the server.
This is a bit of a nuisance as sometimes I forget to add/change a variable
in one of the config files. Or if I've uploaded the files via robocopy,
sometimes I forget to rename the web.deploy.config file. What do other
people do to keep things tidy? (My google success seems to be low today.)
(VS2008, developing on IIS6, deploying to IIS6 & 7.)
Andrew
development and production environments? For example, on my dev server I use
a different SMTP server from the production machines, so I store that in
web.config and have another one I call web.deploy.config, then manually
rename the latter when I upload it to the server.
This is a bit of a nuisance as sometimes I forget to add/change a variable
in one of the config files. Or if I've uploaded the files via robocopy,
sometimes I forget to rename the web.deploy.config file. What do other
people do to keep things tidy? (My google success seems to be low today.)
(VS2008, developing on IIS6, deploying to IIS6 & 7.)
Andrew