Web Deployment Tool will not allow rerun

Last post 03-27-2008 1:19 PM by rpwashington. 2 replies.

Sort Posts:

  • Web Deployment Tool will not allow rerun

    03-27-2008, 12:57 PM
    • Member
      2 point Member
    • rpwashington
    • Member since 03-27-2008, 12:53 PM
    • Posts 3

    I used the Web Deployement tool for VS 2005 with no problem the first time.  When I tried to rebuild I got the following error and I don't know what to do to get around it:

     An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'HousingAppWS.default_' found in assembly 'App_Web_drc-vsx_'.
        C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(574,9): error MSB6006: "aspnet_merge.exe" exited with code 1.
      Done executing task "AspNetMerge" -- FAILED.
    Done building target "AspNetMerge" in project "HMSWebStudent_deploy.wdproj" -- FAILED.

    The compile was successful the the merge produced the cryptic  "aspnet_merge.exe" exited with code 1.

     The assembly mentioned "App_Web_drc-vsx_" is in a Temporary folder under windows .net infrastructure.

    My main goal is to get a dll of my .net 2.0 app like the ones produced by 1.1.

    Thanks,

    R. P. 


     

  • Re: Web Deployment Tool will not allow rerun

    03-27-2008, 1:13 PM
    • Contributor
      3,389 point Contributor
    • hongping
    • Member since 11-02-2006, 9:42 PM
    • Posts 633

    My guess is that you have two pages in separate folders that inherits from the same class name "HousingAppWS.default_". During ASP.NET compilation, each folder is compiled into a separate dll by default, so no errors are thrown. During the merge, these two assemblies are merged, but they both contain the same type, thus causing the error. You could try renaming one of the classes (the inherit attribute and the class in the code-file) to avoid this error.

    ==============================================
    If you get the answer to your question, please mark it as the answer.
  • Re: Web Deployment Tool will not allow rerun

    03-27-2008, 1:19 PM
    Answer
    • Member
      2 point Member
    • rpwashington
    • Member since 03-27-2008, 12:53 PM
    • Posts 3

    I found the problem - I had an asp page that was pointing to a code behind with the same name as another page.  Or another way to put it, two code behind pages had the same name.

    Thanks

Page 1 of 1 (3 items)