Web Deployment Project: error MSB6006

Last post 11-29-2005 2:27 PM by taniam. 3 replies.

Sort Posts:

  • Web Deployment Project: error MSB6006

    11-25-2005, 12:14 PM
    • Participant
      852 point Participant
    • mbischoff
    • Member since 09-06-2005, 9:14 AM
    • Posts 127
    I get this error when I try to build my web deployment project.

    When I enable detailed output, I get this:

    Target AspNetMerge:
      Using "AspNetMerge" task from assembly "C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.Tasks.dll".
      Task "AspNetMerge"
        Running aspnet_merge.exe ...
        Command:
        C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe C:\Projects\GT\GT2005\development\GT2005.NET\deploy\Twi.Gt.Aui_deploy\Debug -o Twi.Gt.Aui_deploy -debug -copyattrs
        The "AspNetMerge" task is using "aspnet_merge.exe" from "C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe".
        Utility to merge precompiled ASP.NET assemblies.
        Copyright (C) Microsoft Corporation. All rights reserved.
       
        An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'MasterPage' found in assembly 'App_Web_mc4d9mid'.
        C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(474,9): error MSB6006: "aspnet_merge.exe" exited with code 1.
      Done executing task "AspNetMerge" -- FAILED.
    Done building target "AspNetMerge" in project "Twi.Gt.Aui_deploy.wdproj" -- FAILED.

    Done building project "Twi.Gt.Aui_deploy.wdproj" -- FAILED.


    It seems to have a problem related to master pages (I have 2 of them in my web site project).

    Regards,
    Martin
    Please mark this post as Answer if it was helpful.

    -- Martin
  • Re: Web Deployment Project: error MSB6006

    11-28-2005, 5:35 PM
    • Participant
      785 point Participant
    • taniam
    • Member since 11-04-2002, 2:21 PM
    • Posts 155
    • AspNetTeam
    Could you provide a little more detail about the structure of your web?  Specifically, are the two masterpages in the same folder or separate folders?  If separate, are they named the same or different?
    Tania

    ASP.NET Team



    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Web Deployment Project: error MSB6006

    11-28-2005, 5:55 PM
    • Participant
      852 point Participant
    • mbischoff
    • Member since 09-06-2005, 9:14 AM
    • Posts 127
    Hi Tania, the two masterpages are in the same folder (the root of the web site).
    One is named "MasterPage.master", the other one "Popup.master".

    Hope this helps.

    Thanks,
    Martin
    Please mark this post as Answer if it was helpful.

    -- Martin
  • Re: Web Deployment Project: error MSB6006

    11-29-2005, 2:27 PM
    • Participant
      785 point Participant
    • taniam
    • Member since 11-04-2002, 2:21 PM
    • Posts 155
    • AspNetTeam
    Martin-

    I'm having trouble reproducing your problem, but I'm just doing the basics:
    1.  Create a new web (on http://localhost and VB)
    2.  Add a masterpage to the root (Masterpage.master, code in separate file)
    3.  Add a masterpage to the root (Popup.master, code in separate file)
    4.  Build / Publish Web Site, accept defaults and click OK.

    I think it would be helpful if you could provide any info on additional steps you performed, and the contents of your masterpages.
    Tania

    ASP.NET Team



    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (4 items)