Dev and production web.configs

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
 

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,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top