How To Implement web.config Transformation
> On your web application, click on the
configuration manager drop down list
> near Run Button on Visual Studio as shown in the figure.
> By Default it contains
Debug and Release only.

> On
configuration manager drop down list, click on the
configuration manager link.
> A new window will open as shown in the figure.

> Inside that window, on
Active Solution Configuration drop down list, select
New Link.
> A new window will open as shown in the figure.

> On that window, enter a new Publish Environment Name on the Name field.
> Don't copy anything from the previous configurations, if you don't need.
> check the
Create new project configurations check box.
> Then click OK button.
> Close the Configuration Manager window also.
> Now go to the
Solution Explorer and right click on the web.config main file.
> Click on the
Add Config Transform link.
> This will automatically append the newly created web.config as shown in the figure.

> Now select this configuration at the time of Publish as shown in the figure.
What Modifications needs to be done on the newly created web.config.
> Some of the changes on the newly created web.config are specified on the following figure.

> As per our requirement, we can replace, insert or remove the attributes.
Watch Video of this Content on Video Streaming