Hi Chuck,
Regarding on this web deployment project "section replacement" with custom
section handler issue, I've performed some local test and did repro the
same behavior you mentioned. After some further research, I found that the
problem is due to the MSBUILD engine will use configuration API to process
the web.config file(to do the section replacement), that means if you're
using custom section handler, the msbuild app need to be able to locate the
custom section handler's assembly. And for custom section handlers in a
custom private assembly(in application's bin dir), msbuild won't be able to
locate it. Here is a web thread on forum mentioned the same issue:
http://forums.asp.net/t/1062816.aspx
and currently, some possible workaround options are available:
** strongname the custom seciton handler asembly and put it into GAC so
that msbuild engine can locate it
** instead of section replacement(of web deployment project), you can use
"configSource" attribute of web.config (ASP.NET 2.0 specific) to specify a
section's content in a separate file.
Hope this helps.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.