Last post Nov 24, 2006 11:07 AM by raikkonen
Nov 10, 2005 09:29 AM|HarryPfleger|LINK
Nov 11, 2005 01:02 AM|BradleyB|LINK
Nov 11, 2005 03:53 AM|Robert W. Anderson|LINK
Nov 11, 2005 04:39 PM|SimonCal|LINK
Thanks for the feedback. Is there a compelling reason that you are replacing the entire system.web config section in one shot?
Nov 17, 2005 12:09 AM|BradleyB|LINK
btw: we found the problem. system.web is actually a section group. A subtle difference but only sections support the configSource attribute.
Unfortunately the Beta of Web Deployment Projects does not let you replace a section within a section group.
For example system.web/authentication where system.web is the section group and authentication is the section.
We’ve fixed this issue so that in the update you’ll be able to replace sections within section groups.
system.web/authentication = authentication.config
system.net/mailSettings = mailSettings.config
Hope this will help.
Nov 17, 2005 05:18 PM|deuxex25|LINK
Nov 17, 2005 05:53 PM|SimonCal|LINK
We are starting to figure out a possible schedule, but nothing firm yet.
Dec 01, 2005 02:38 PM|deuxex25|LINK
I think you have the honors of finding the first bug. We're using
Configuration.Sections to acess the replaceable sections and it doesn't appear to work with system.web.
I'll enter the bug. Thanks!
desperate you can always create a custom task to do. If you want to peruse that let me know.
Dec 02, 2005 07:44 PM|BradleyB|LINK
I just created a post on how to create a custom msbuild task for auto-incrementing version numbers. How to auto-increment assembly version using a custom MSBuild task
This will give you a basic idea of how to create and use a custom msbuild task.
One of things you'll need to do in your task is get a Configuration object for the web.config file.
Here is a snippit that will do that.
Gets the Configuration object for web.config
private Configuration GetWebConfiguration()
WebConfigurationFileMap webMap =
VirtualDirectoryMapping vDirMap =
Once you have a Configruation object you can do things like this:
// Find the section in the configuration
ConfigurationSection configSection = config.GetSection(“system.web/authentication”);
configSection.SectionInformation.ConfigSource = filename;
Where filename contians the new section.
This technique only works for config sections, if you instead want to repalce the entire system.web section group you should consider just replacing the entire file with a Copy command. Another option would be
to try an merge files using the
XmlDocument Class. That's more involved but would be pretty cool.
I hope this gives you enough to get started.
Jan 19, 2006 01:08 PM|proturbo|LINK
We are also experiencing the same problem. In our case, we have the issue when trying to replace Web references (references to web services). They are dynamic and VS 2005 adds a custom configuration section to app.config (that can be copied into web.config).
The section is inside a section group and can not be replaced in the current version of the Web Deployment Project. Hope you can release an updated version soon, as many projects include web references.
Feb 21, 2006 05:53 PM|derekgreer|LINK
Mar 07, 2006 11:08 PM|lprigmore|LINK
Can you please tell me where the replacement file is suppose to be located? I've tried using a connectionStrings=connectionStrings.config and locating the file in the Web deployment's directory and the Web apps root directory, but neither are being found.
I am having the same problem! Can anyone shed some light on this issue?
Thanks in advance for any help,
Mar 17, 2006 11:37 AM|DateTheKnave|LINK
I just downloaded the latest Beta of Web Deployment projects, and i'm having an issue replacing a system.web setting.
the setting I wish to replace is our development setting:
so, I've setup a replacement file containing
(I've also tried wrapping that in a <system.web></system.web> block too)
And using the replacement directive, in the web deployment:
I'm guessing it's becuase 'Identity' isn't a section group, just a single key.
The question is, how can I get around this?
Mar 17, 2006 03:12 PM|dibzee|LINK
Mar 28, 2006 06:19 PM|BradleyB|LINK
The task that ships with Web Deployment Projects for replacing config sections will only work on sections that support the configSource attribute.
Hope this helps, Brad.
Nov 14, 2006 06:17 PM|trentfoley|LINK
The sections are case sensitive. Verify that your system.Web section is not system.web.
Nov 24, 2006 11:07 AM|raikkonen|LINK
Hi, I posted wrongly the last time so I would like to help me in....
Thanks in advance...