Web Deployment Project and Team Build - Config Replacement - Missing Section

Last post 07-01-2008 1:27 PM by ncx5. 1 replies.

Sort Posts:

  • Web Deployment Project and Team Build - Config Replacement - Missing Section

    07-01-2008, 8:47 AM
    • Loading...
    • ncx5
    • Joined on 07-01-2008, 8:41 AM
    • Posts 2

    Hello,

    error WDP00002: missing section connectionStrings.

    Has anyone been able to use WDP config replacements with Team Build?

    I am getting this error and for the life of me I cannot fix it, I believe the paths are incorrect when using Team build.

    Please provide some input if you have encountered this and have a solution.

    Thanks!!!!

     Neil

  • Re: Web Deployment Project and Team Build - Config Replacement - Missing Section

    07-01-2008, 1:27 PM
    • Loading...
    • ncx5
    • Joined on 07-01-2008, 8:41 AM
    • Posts 2

    Progress:

    I am able to replace the configs via

    http://andrewmyhre.wordpress.com/2008/05/09/making-team-build-and-web-deployment-projects-play-nice-part-2/

    Now you need to follow the directions posted by BradleyB. Find the <SourceWebPhysicalPath>…</SourceWebPhysicalPath> element in your Web Deployment Project file. Comment it out and replace it with:

    <SourceWebPhysicalPath Condition=”‘$(OutDir)’ != ‘$(OutputPath)’”>$(OutDir)_PublishedWebsites\WebApplication1</SourceWebPhysicalPath>
    <SourceWebPhysicalPath Condition=”‘$(OutDir)’ == ‘$(OutputPath)’”>..\WebApplication1</SourceWebPhysicalPath>

    The key here is to check the build ouput directory on the server to make sure this path exists as TFS Build will use the project name when publishing to the _PublishedWebsites
    <SourceWebPhysicalPath Condition=”‘$(OutDir)’ != ‘$(OutputPath)’”>$(OutDir)_PublishedWebsites\WebApplication1</SourceWebPhysicalPath>

    Now I have errors with custom sections...


     

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter