Visual Studio 2005 Web Deployment Projectshttp://forums.asp.net/t/940291.aspx/1?Visual+Studio+2005+Web+Deployment+ProjectsSun, 14 May 2006 12:18:27 -04009402911122949http://forums.asp.net/p/940291/1122949.aspx/1?Visual+Studio+2005+Web+Deployment+ProjectsVisual Studio 2005 Web Deployment Projects I am trying to use the &quot;Visual Studio 2005 Web Deployment Projects (Beta Preview)&quot; but I get the following error attempting a build<br> <font size="1"> <p><font face="Arial" size="3">Running aspnet_merge.exe ...</font></p> <p><font face="Arial" size="3">C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe C:\MyProjects\VDN2\VDN2_deploy\Release -o VDN2_deploy -copyattrs </font></p> <p><font face="Arial" size="3">C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(474,9): error MSB6006: &quot;aspnet_merge.exe&quot; exited with code 1.</font></p> <p><font face="Arial" size="3">Done building project &quot;VDN2_deploy.wdproj&quot; -- FAILED.</font></p> <p><font face="Arial" size="3">========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========<br> <br> Could someone tell what this means and how to fix it?<br> <br> Many thanks<br> Richard.</font></p> </font> 2005-11-24T10:33:08-05:001123829http://forums.asp.net/p/940291/1123829.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Hi Richard,</p> <p>This is most likely caused by you having two classes with the same name in your project.&nbsp; To figure out which class is the cause, go to your Tools-&gt;Options menu in VS and drill into the &quot;Projects and Solutions-&gt;Build And run node.&nbsp; There you can set the MSBuild output verbostity mode -- change it to &quot;normal&quot; for your profile.&nbsp; This will then allow you to see more information on the build error, and it should pin-point the class name conflict.</p> <p>Hope this helps,</p> <p>Scott</p> 2005-11-25T16:36:19-05:001125212http://forums.asp.net/p/940291/1125212.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p><font size="2"><br> Many thanks for that, but I had to change the option to &quot;Detail&quot; to get the exact error. I was trying to build DotNetNuke 4.0. I will post this on the DotNetNuke forum.<br> <br> Richard.<br> <br> Target AspNetMerge:</font></p> <p><font size="2">Using &quot;AspNetMerge&quot; task from assembly &quot;C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.Tasks.dll&quot;.</font></p> <p><font size="2">Task &quot;AspNetMerge&quot;</font></p> <p><font size="2">Running aspnet_merge.exe ...</font></p> <p><font size="2">Command:</font></p> <p><font size="2">C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe C:\MyProjects\DNN42\DNN4_deploy\Debug -o DNN4_deploy -debug -copyattrs </font></p> <p><font size="2">The &quot;AspNetMerge&quot; task is using &quot;aspnet_merge.exe&quot; from &quot;C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe&quot;.</font></p> <p><font size="2">Utility to merge precompiled ASP.NET assemblies.</font></p> <p><font size="2">Copyright (C) Microsoft Corporation. All rights reserved.</font></p> <p><font size="2"></font></p> <p><font size="2">An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'DotNetNuke.UI.Skins.Controls.SolPartMenu' found in assembly 'App_Web_fhh6ifkz'.</font></p> <p><font size="2">C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(474,9): error MSB6006: &quot;aspnet_merge.exe&quot; exited with code 1.</font></p> <p><font size="2">Done executing task &quot;AspNetMerge&quot; -- FAILED.</font></p> <p><font size="2">Done building target &quot;AspNetMerge&quot; in project &quot;DNN4_deploy.wdproj&quot; -- FAILED.</font></p> <p><font size="2">Done building project &quot;DNN4_deploy.wdproj&quot; -- FAILED.</font></p> <p><font size="2">Build FAILED.</font></p> <p><font size="2">Time Elapsed 00:00:56.56</font></p> 2005-11-28T08:52:01-05:001128845http://forums.asp.net/p/940291/1128845.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects I posted on the DNN forums and people seemed to think as DNN4 compiles, deploys(via copy) and runs ok it must be a bug in the Web Deployment Proejcts Beta?<br> 2005-12-01T10:59:07-05:001129829http://forums.asp.net/p/940291/1129829.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Hi Rich,</p> <p>The compilation and web copy support have a fall-back mechanism where if they detect a duplicate class name&nbsp;they can split it out into a separate assembly.&nbsp; The problem is that you've configured the web deployment project to emit a single assembly -- in which case obviously it can't split it out (or it would defeat your intent).</p> <p>What I'd recommend is doing a Quick Find (Ctrl F) for classes named &quot;<font size="2">'DotNetNuke.UI.Skins.Controls.SolPartMenu</font>&quot;.&nbsp; This is the class that is defined twice in the project and causing the problem.&nbsp; You'll want to delete or rename one of them -- in which case it will build fine.</p> <p>Hope this helps,</p> <p>Scott</p> 2005-12-02T04:36:25-05:001130175http://forums.asp.net/p/940291/1130175.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Hi Scott,</p> <p>I can only find one definition for the class and it is in a partial class.</p> <font size="2"> <p></font><font color="#0000ff" size="2">Partial</font><font size="2"> </font><font color="#0000ff" size="2">Class</font><font size="2"> SolPartMenu</font></p> <p><font size="2"><font size="3">Richard.</font></p> </font> 2005-12-02T13:25:49-05:001130275http://forums.asp.net/p/940291/1130275.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Hi Richard,</p> <p>Are you using the standard DotNetNuke download, or have you made changes to it?&nbsp; If the former, the I will go ahead and try it out on my own machine to try and see if I get the same error.</p> <p>Thanks,</p> <p>Scott</p> 2005-12-02T14:45:35-05:001130331http://forums.asp.net/p/940291/1130331.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Hi Scott,</p> <p>I am using the standard DotNetNuke 4.0.0 Starter Kit Download from <a href="http://dotnetnuke.com/About/Downloads/tabid/125/Default.aspx"> http://dotnetnuke.com/About/Downloads/tabid/125/Default.aspx</a></p> <p>Thanks</p> <p>Richard.</p> <p>&nbsp;</p> 2005-12-02T15:25:59-05:001192486http://forums.asp.net/p/940291/1192486.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Scott,</p> <p>I have the same error.</p> <p>Did you find a solution or any workaround?</p> 2006-02-08T21:42:36-05:001192615http://forums.asp.net/p/940291/1192615.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Hi Michael,</p> <p>Can you try these steps:</p> <p>&gt;&gt;&gt; To figure out which class is the cause, go to your Tools-&gt;Options menu in VS and drill into the &quot;Projects and Solutions-&gt;Build And run node.&nbsp; There you can set the MSBuild output verbostity mode -- change it to &quot;detailed&quot; for your profile.&nbsp; This will then allow you to see more information on the build error.</p> <p>What is the error message that shows up in the output window when you build with this MsBuild verbosity level set?</p> <p>Thanks,</p> <p>Scott</p> <p>&nbsp;</p> 2006-02-09T01:12:39-05:001192850http://forums.asp.net/p/940291/1192850.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Scott,</p> <p>The error I have is the same that <a href="/user/Profile.aspx?UserID=7613">richbaker</a> reported on 11-28-2005:</p> <p><font size="1">&nbsp;</font>An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'DotNetNuke.UI.Skins.Controls.SolPartMenu' found in assembly 'App_Web_k5hhsnh0'.</p> <p>C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(474,9): error MSB6006: &quot;aspnet_merge.exe&quot; exited with code 1.</p> <p>Done executing task &quot;AspNetMerge&quot; -- FAILED.</p> <p>There is also&nbsp;<a href="/1178593/ShowPost.aspx">another thread </a>about the same issue.</p> 2006-02-09T06:40:47-05:001196048http://forums.asp.net/p/940291/1196048.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects <p>Hi Michael,</p> <p>Unfortunately I think the above error is because DotNetNuke defines that class in two places.&nbsp; I've seen someone else have this same problem before.&nbsp; It only hits when you merge things into a single assembly -- which is why most people using the default (non-single assembly) build option don't run into it.</p> <p>You might try building a separate assembly for each directory (one of the other build options that VS 2005 Web Deployment Projects provide).&nbsp; Alternatively, you should search for that class name within the DNN project and eliminate/rename one of the duplicate classes.</p> <p>Hope this helps,</p> <p>Scott</p> 2006-02-13T02:29:26-05:001285302http://forums.asp.net/p/940291/1285302.aspx/1?Re+Visual+Studio+2005+Web+Deployment+ProjectsRe: Visual Studio 2005 Web Deployment Projects The reason was that&nbsp; in DotNetNuke 2 ascx files&nbsp; referred to the same code-behing class. See <a href="http://geekswithblogs.net/mnf/archive/2006/05/04/77162.aspx">my blog post</a>. 2006-05-14T12:18:27-04:00