WebConfigReplacement not works for appSettings with configSource attribute RRS feed

  • Question

  • User1070236303 posted

    I have a web.config file with:


        ... keys 


    In the wdp project file I have a WebConfigReplacementFile element which try to replace the above appSettings with this one:

    <appSettings configSource="some path" /> 

    Wdp build fails with: ...Unrecognized attribute 'configSource'. Note that attribute names are case-sensitive...

    Is this a bug in wdp or a limitation?




    Monday, June 15, 2009 4:54 AM


  • User372121194 posted


    To update the Web.config file by replacing existing sections with elements that reference a .config file, please enable "Use external configuration source file" option.

    For example, the web.config contains appSettings section:

      <add key="test" value="AAA"></add>

    And there is a config file named SourceConfig.config, containing:

      <add key="New1" value="BBB"></add>

    In the Web Deployment project, we can directly type appSettings=SourceConfig.config in Web.config file section replacements TextBox.

    After build Web Deployment project, the web.config will become:

    <appSettings configSource="SourceConfig.config" />


    I look forward to receiving your test results.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 18, 2009 4:27 AM