Hi,
I have both Web.Release.config and Web.OurLive.config files for different release versions.
So for one of our servers we need to deploy only Web.OurLive.config which will be transformed to Web.config.
During deploy we have an error with Web.Release.config which tries to replace web.config after transformation Web.OurLive.config to Web.config
You can see deploy log with error message:
Deploying package ‘C:\Octopus\Files\xxx.24.0.0.nupkg-9be33feb-a985-4eee-aca3-767e8bc12175’ to machine ‘https://xxx:10933/’
October 30th 2016 23:04:35Info
Deploying package: C:\Octopus\Files\xxx.24.0.0.nupkg-9be33feb-a985-4eee-aca3-767e8bc12175
October 30th 2016 23:04:36Info
Transforming ‘C:\xxxr\Applications\Live\xxx\24.0.0_4\Web.config’ using ‘C:\xxx\Applications\Live\xxx24.0.0_4\Web.OurLive.config’.
October 30th 2016 23:04:36Info
Transforming ‘C:\xxx\Applications\Live\xxx\24.0.0_4\Web.config’ using ‘C:\xxx\Applications\Live\xxx\24.0.0_4\Web.Release.config’.
October 30th 2016 23:04:36Warning
File C:\xxx\Applications\Live\xxx\24.0.0_4\Web.Release.config, line 22, position 18:
October 30th 2016 23:04:36Warning
Argument ‘debug’ did not match any attributes
October 30th 2016 23:04:36Warning
File C:\xxx\Applications\Live\xxx\24.0.0_4\Web.config, line 120, position 6:
October 30th 2016 23:04:36Warning
No attributes found to remove
October 30th 2016 23:04:36Error
The XML configuration file C:\xxx\Applications\Live\xxx\24.0.0_4\Web.config failed with transformation file C:\xxx\Applications\Live\xxx\24.0.0_4\Web.Release.config.
October 30th 2016 23:04:36Error
Could not transform the file ‘C:\xxx\Applications\Live\xxx24.0.0_4\Web.config’ using the pattern ‘Release’.
October 30th 2016 23:04:36Error
C:\xxxApplications\Live\xxx24.0.0_4\Web.config(120,6): No attributes found to remove
October 30th 2016 23:04:36Error
Running rollback conventions…
October 30th 2016 23:04:36Error
C:\xxxApplications\Live\xxx\24.0.0_4\Web.config(120,6): No attributes found to remove
October 30th 2016 23:04:36Fatal
The remote script failed with exit code 1
October 30th 2016 23:04:36Fatal