Problem with web.config transformations
bsimmonds
Posts: 3
I have run across an interesting issue that I have not been able to find a solution for. We currently use the redgate deployment manager addon for visual studio to help streamline our deployment process, however, whenever we publish using the deployment manager it does not take the web.dev.config transformation file that we created into account.
At first, I thought that it might be a syntax issue so I found a tool that confirmed our syntax was correct. I tried a standard "publish" within visual studio (just going to a file system to make it easy) and the web.config file does change appropriately. It is only with the redgate deployment manager that the file does not change.
I was curious if anybody else had run into this issue with redgate or if they have any idea which way to look as I have not been able to find a solution.
At first, I thought that it might be a syntax issue so I found a tool that confirmed our syntax was correct. I tried a standard "publish" within visual studio (just going to a file system to make it easy) and the web.config file does change appropriately. It is only with the redgate deployment manager that the file does not change.
I was curious if anybody else had run into this issue with redgate or if they have any idea which way to look as I have not been able to find a solution.
Comments
I've replied to your question on stack overflow:
http://stackoverflow.com/questions/1955 ... 2#19569992
Let me know if this solves the problem!
Best wishes,
Justin
Developer
Redgate Software Ltd
I tried what you are suggesting and both the web.config and web.dev.config files were deployed, however, the transformations were not done so both config files were sitting separately on the server. I tried a standard publish through visual studio and the transforms still work as expected. Only when I use the redgate deployment manager am I running into the transformation issue. Any other suggestions?
Are you able to send me the log file for the deployment? Passwords should be masked out anyway in the log, but worth a double check!
My email: justin.caldicott@red-gate.com
I'll then take a look and get back to you.
Developer
Redgate Software Ltd
For example, if you have an environment called "Development", you need to call your web.config transform web.Development.config.
Developer
Redgate Software Ltd