I have noticed a number of people having the same problem with no response, so I thought I'd give it another go.
I am trying to replace custom sections of my config file when building my Web Deployment Project. However I am recieving a variety of errors from not being able to find dlls, to invalid sections in my config. Does anyone have any examples of replacing custom
sections of a config file
I had a similar problem. If these assemblies cannot be found by the MSBuild process then it seems it will fail. The task to replace config sections does not seem to make an effort to find the assemblies in the bin folder for the custom configuration sections.
What I did to solve my problem was to sign the assembly and place it in the GAC. Then the deployment project was able to find the assembly when it was replacing config sections.
PaulMatthews
0 Points
4 Posts
Replacing Custom Sections of a Web.Config
Apr 19, 2007 11:55 AM|LINK
I have noticed a number of people having the same problem with no response, so I thought I'd give it another go.
I am trying to replace custom sections of my config file when building my Web Deployment Project. However I am recieving a variety of errors from not being able to find dlls, to invalid sections in my config. Does anyone have any examples of replacing custom sections of a config file
Thanks in Advance
offwhite
Participant
959 Points
206 Posts
Re: Replacing Custom Sections of a Web.Config
Apr 20, 2007 01:55 AM|LINK
I had a similar problem. If these assemblies cannot be found by the MSBuild process then it seems it will fail. The task to replace config sections does not seem to make an effort to find the assemblies in the bin folder for the custom configuration sections.
What I did to solve my problem was to sign the assembly and place it in the GAC. Then the deployment project was able to find the assembly when it was replacing config sections.
http://www.smallsharptools.com/
http://www.linkmindr.com/