# Modification of web.config in asp.net?

**URL:** https://www.finalbuilder.com/forums/t/modification-of-web-config-in-asp-net/1745
**Category:** Discussion
**Created:** [April 22, 2011, 6:21am UTC](https://www.finalbuilder.com/forums/t/modification-of-web-config-in-asp-net/1745 "2011-04-22T06:21:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 22, 2011, 6:21am UTC](https://www.finalbuilder.com/forums/t/modification-of-web-config-in-asp-net/1745/1 "2011-04-22T06:21:02Z")

</div>

hi folks,

&nbsp;&nbsp;&nbsp; its just out of curiosity if tis possible to add/delete entries in the web.config in asp.net? say, i have dev, staging and production environments, certain keys may or may not deplpy from dev environment or others vis versa,

thanks in advance,

Stefan

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [April 27, 2011, 1:11am UTC](https://www.finalbuilder.com/forums/t/modification-of-web-config-in-asp-net/1745/2 "2011-04-27T01:11:56Z")

</div>

Hi Stefan   
  
 You can use the XML actions to edit the webconfig, or if you have VS2010 installed on your build machine you can use web.config transformations - some useful info here - [http://stackoverflow.com/questions/2905151/msbuild-script-and-vs2010-publish-apply-web-config-transform](http://stackoverflow.com/questions/2905151/msbuild-script-and-vs2010-publish-apply-web-config-transform)
