I have a Web Deploy Package that produces an App.SetParameters.xml file along with all the other package files. The SetParameters file has several setParameter
nodes that are supposed to update connection strings, but whenever I execute the web deployment script it always reports 0 parameters changed
. Looking at the deployed Web.config file shows that they were indeed not updated.
Verbose output of the deploy script doesn't say anything about why it is skipping my parameters; it never even mentions them. However, if I change one of the setParameter
tags to a parameter
tag it gives me an error:
Error: The parameter 'ConnectionString-Web.config Connection String' has already been defined.
So it is obviously finding that parameter in my Web.config. I am completely confused by why it would just skip parameters like this.
Environment:
- Visual Studio 2012
- Web Deploy 3.0
- Windows Server 2008 R2
- IIS 7