Aspnet_merge error has no detail

Posted by dang57 on Stack Overflow See other posts from Stack Overflow or by dang57
Published on 2010-02-09T17:50:55Z Indexed on 2010/03/28 9:23 UTC
Read the original article Hit count: 662

I have been attempting to add a Deployment Project to my web app. When I build it, I get a message "An error occurred when merging assemblies: Exception from HRESULT: 0x806D0004". There is no other detail, like ILMerge error, or Duplicate Name. I have "verbosity" set to "Diagnostic", and this is the output:

Command:

C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe "\...XXX...\My Documents\Visual Studio 2005\Projects\XXX_deploy\Debug" -o XXX_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.

An error occurred when merging assemblies: Exception from HRESULT: 0x806D0004

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 "XXX_deploy.wdproj" -- FAILED.

Done building project "XXX_deploy.wdproj" -- FAILED.

Build FAILED.

I have tried running the command via the Command prompt, but it does not give any additional information.

I have also removed EVERYTHING from the project, including references, style sheets, forms, tableadapters. I still have a web.config, but deleted all app-specific lines. I added a single new form named Default. I have even tried renaming that form to DefaultX, just in case there was another Default out there. I still get the error.

What else can I look for?

I'm running VS 2005 v8.05.

Thanks Dan

© Stack Overflow or respective owner

Related posts about visual-studio-2005

Related posts about aspnet-merge