I have a c# website that I've been deploying through iis7/webdeploy and that works great. Problem is when I update the site the web.config file gets overwritten. This file contains there database connection and a few other settings specific to their site. Since release I've been updating their sites by logging in, copying the web.config, re-running the import, and re-coping the web.config back. I've screwed myself a couple of times by forgetting to do so which then causes a lot of extra work on my part. However, now I'm working on getting the web interface in as part of my automated deployment so I need to figure out why it's overwriting the current configuration of the site.
Does anyone know why the web.config is getting overwritten and/or how to fix it so it doesn't do that anymore?
Thanks! Scott