Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 24, 2006 11:07 AM by raikkonen
Nov 10, 2005 09:29 AM|LINK
Nov 11, 2005 01:02 AM|LINK
Nov 11, 2005 03:53 AM|LINK
Nov 11, 2005 04:39 PM|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|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|LINK
Nov 17, 2005 05:53 PM|LINK
We are starting to figure out a possible schedule, but nothing firm yet.
Dec 01, 2005 02:38 PM|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|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|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.