Questions tagged [web.config-transform]

A transform file is an XML file that specifies how the Web.config file should be changed when it is deployed.

Transformation actions are specified by using XML attributes that are defined in the XML-Document-Transform namespace, which is mapped to the xdt prefix. The XML-Document-Transform namespace defines two attributes: Locator and Transform. The Locator attribute specifies the Web.config element or set of elements that you want to change in some way. The Transform attribute specifies what you want to do to the elements that the Locator attribute finds.

Useful links

270 questions
31
votes
6 answers

How to set debug false for release mode

I have this web.config file with the compilation option set as below Web.config ... ... And here is what Visual Studio puts for…
31
votes
8 answers

SlowCheetah not transforming file on build

I have a project I am trying to use SlowCheetah for. I have created my config file (Test.web.config) and all the transformations I want to use (Debug_Mock.config, Debug_SQL.config, Release) in my Build configuration I have a post-build event is…
26
votes
1 answer

Web.config with XDT transform to do partial replace

I am in a situation where I just want to update a part of a the URL of a WCF endpoint. Right now we do this by including different configs with all the endpoints per 'variety'. This is tedious to manage. I would like to setup a transform in the…
ranieuwe
  • 2,268
  • 1
  • 24
  • 30
23
votes
7 answers

Encrypt Web.Config (Web.Release.config) Transform files using aspnet_regiis

I have a requirement to not store any sensitive information (e.g. usernames and passwords) in source control. We are doing a .NET 4.5 MVC app so my plan was to encrypt the web.config using the aspnet_regiis.exe and the built in functionality of…
bechbd
  • 6,206
  • 3
  • 28
  • 47
21
votes
5 answers

web config error: Unrecognized attribute 'xmlns:xdt'. Note that attribute names are case-sensitive

I am trying to deploy an application to AppHarbor and followed their instructions on how to modify my web.config, so it uses their instance auf Sql server. Upon running the solution I am getting the error mentioned in the topic: Unrecognized…
Marco
  • 22,856
  • 9
  • 75
  • 124
19
votes
2 answers

Is it possible to have App.config transforms for an Azure WebJob for different publish profiles?

Where I work, we create Azure web sites and SQL databases for development purposes as needed as well as for staging and production environments. We create a web.config transform for each publish profile to change the database connection string to…
Tyler Pohl
  • 595
  • 1
  • 6
  • 10
18
votes
1 answer

Web.config Transformation: Transform attribute is not declared

I am attempting to transform my Web.config file to add rewrite rules for release builds, but I'm getting an intellisense error. The 'http://schemas.microsoft.com/XML-Document-Transform:Transform' attribute is not declared. Web.Release.config It…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
16
votes
8 answers

Set web.config transform in Asp.NET Core

I've just came across with problem of web.config transformation in asp.net core. There are two files: base web.config and web.prod-zone-a.config. My aim is to use transformation inside web.prod-zone-a.config when publishing my project. I have the…
user1820686
  • 2,008
  • 5
  • 25
  • 44
16
votes
5 answers

web.config transforms for

I have web.config transforms for several environments. In the config file I have an applicationSettings section with several setting and value pairs. I have tried based on the syntax I use to match name and change the connection strings to also…
Mych
  • 2,527
  • 4
  • 36
  • 65
13
votes
5 answers

Azure Website - Web.config transform fails "No element in the source document matches /configuration/system.identityModel/identityConfiguration"

Our ASP.NET Web Api project has two deployment configurations (.pubxml): Web deployment directly to Azure Websites. Package deployment to a local Zip file. The Web deployment (1) works just fine. The Package deployment to a zip is failing with…
bartonm
  • 1,600
  • 3
  • 18
  • 30
12
votes
2 answers

Merging web.configs between projects

I have a common web project which is used as a base for several "child" web projects. Is it possible to apply a web.config transform/merge between projects? Let's say the structure looks like this: base project - web.config child project -…
filur
  • 2,116
  • 6
  • 24
  • 47
12
votes
1 answer

MSDeploy setParameter not working

We are trying to integrate a 'build once, deploy anywhere' model in our build-deploy system. MSDeploy works wonders for this, cutting down build time dramatically with CRC checksum comparisons and (for the most part) it works just as well when using…
ShaneC
  • 2,237
  • 2
  • 32
  • 53
12
votes
2 answers

xdt:Transform="Insert" not working for in

I have the following transform written in the live config of my web.config.
11
votes
4 answers

Remove section in web.config file in debug mode

I have an asp.net application, which must run under SSL, and it has some rewrite rules defined in web.config to accomplish this. ....
bzamfir
  • 4,698
  • 10
  • 54
  • 89
11
votes
1 answer

Azure Web Role configuration settings across environments

Releasing before Azure: Before using Azure, we would just have read-only config files sitting in the different environments (test, staging and production, etc.). During a release, all application files (no config files) would be deployed to the…
Dave New
  • 38,496
  • 59
  • 215
  • 394
1
2 3
17 18