Red Gate forums :: View topic - Problem with web.config transformations
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Problem with web.config transformations

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
bsimmonds



Joined: 24 Oct 2013
Posts: 2

PostPosted: Thu Oct 24, 2013 2:30 pm    Post subject: Problem with web.config transformations Reply with quote

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.
Back to top
View user's profile Send private message
justin.caldicott



Joined: 20 Apr 2011
Posts: 55

PostPosted: Thu Oct 24, 2013 4:37 pm    Post subject: Reply with quote

Hi Brett,

I've replied to your question on stack overflow:
http://stackoverflow.com/questions/19553028/web-config-transformations-in-redgate-for-visual-studio-not-being-applied/19569992#19569992

Let me know if this solves the problem!

Best wishes,

Justin
_________________
Justin Caldicott
Product Manager - Deployment Manager
Red Gate
Back to top
View user's profile Send private message
bsimmonds



Joined: 24 Oct 2013
Posts: 2

PostPosted: Thu Oct 24, 2013 7:19 pm    Post subject: Reply with quote

Thanks for your timely response! I shot a reply on stack overflow, but thought I would post it here as well (not sure which you will see first).

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?
Back to top
View user's profile Send private message
justin.caldicott



Joined: 20 Apr 2011
Posts: 55

PostPosted: Fri Oct 25, 2013 10:41 am    Post subject: Reply with quote

Hi Brett,

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.
_________________
Justin Caldicott
Product Manager - Deployment Manager
Red Gate
Back to top
View user's profile Send private message
justin.caldicott



Joined: 20 Apr 2011
Posts: 55

PostPosted: Mon Oct 28, 2013 1:49 pm    Post subject: Reply with quote

Just to confirm the answer for anyone else who is looking. The issue was that the Environment name in Deployment Manager (not machine name) didn't match the name of the web config transform.

For example, if you have an environment called "Development", you need to call your web.config transform web.Development.config.
_________________
Justin Caldicott
Product Manager - Deployment Manager
Red Gate
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group