Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development

Some time ago I blogged that my attempt to use VS 2005 Web Deployment Project  failed with not very helpful Aspnet_merge.exe Exited With Code 1 message.  As it is described in the thread, the actual error reported was
An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'DotNetNuke.UI.Skins.Controls.SolPartMenu' found in assembly 'App_Web_k5hhsnh0'.

I found that there are 2 files “admin\Skins\solpartmenu.ascx“ and “admin\Skins\menu.ascx“ referring to the  same SolPartMenu.ascx.vb. 2 files generated partial classes with the same name and caused “Duplicate type” error during merge.

I didn't find where “admin\Skins\menu.ascx“ is used, so I just excluded it from the project.

The recomendation how to fix the problem in general are described in MS article “Common Web Project Conversion Issues and Solutions”, issue 26.

After this I've got the next error “Duplicate type 'DotNetNuke.UI.WebControls.SolPartActions'” , that I fixed by excluding admin\Containers\actions.ascx from the project.

After this I was able to build Deployment project without any errors, that gave me one DLL per subfolder. 

The problem is reported to DNN Support.

Posted on Thursday, May 4, 2006 10:27 AM | Back to top


Comments on this post: Use VS 2005 Web Deployment Project with DotNetNuke

# re: Use VS 2005 Web Deployment Project with DotNetNuke
Requesting Gravatar...
Yes Yes !! wow
Thanks a lot, I was looking and looking and looking...
Left by Jan de Vos on May 26, 2006 4:10 AM

# re: Use VS 2005 Web Deployment Project with DotNetNuke
Requesting Gravatar...
Hello

I have a 2005 project which looks like this

root
- en
- fr

under the folder 'en' I have a default.aspx file with a default.aspx.vb

under the fr folder I have also a default.aspx file but this file points to default.aspx.vb from the en dir

problem is when I compile it just doesn't work and gives an error 1

I looked at the diagnostic messages and it tells me that the default.aspx.vb class is duplicate, but that is not the case, it is only linked twice

what to do to be able to merge all my files

Left by Jan on Jun 30, 2006 9:34 AM

# re: Use VS 2005 Web Deployment Project with DotNetNuke
Requesting Gravatar...
Jan,
To refer to the same base class from 2 different aspx files is not reconmmended in ASP.NET 2. See “Common Web Project Conversion Issues and Solutions”, issue 26.
http://msdn.microsoft.com/asp.net/reference/migration/upgrade/default.aspx?pull=/library/en-us/dnaspp/html/conversionissuesasp_net.asp#issue26
Left by Michael Freidgeim on Jun 30, 2006 10:19 AM

# re: Use VS 2005 Web Deployment Project with DotNetNuke
Requesting Gravatar...
Thanks Michael, this helped me out this afternoon.
Left by Chris Hammond on Nov 02, 2006 8:27 AM

# re: Use VS 2005 Web Deployment Project with DotNetNuke
Requesting Gravatar...
Thanks for posting the fix. I think one way the problem happens is when you copy an existing page or control using copy and paste.

The new page still uses the partial class name of the original page, hence the duplicate class names.
Left by Derek Smyth on Mar 16, 2007 9:36 PM

# how to use dotnet duke in my project
Requesting Gravatar...
hi friend
I am Gopal Chauhan from India....and i want to use Dotnet Duke module in my project ..some one tell me how to use Dotnetduke in project...
thankx and regards
Gopal chauhan
Left by Gopal chauhan on Sep 23, 2008 1:15 AM

# re: Use VS 2005 Web Deployment Project with DotNetNuke
Requesting Gravatar...
Hi Friend,
I'm Muthupandian from Chennai.. i want to use Dotnet Duke module in my project ..can some one tell me how to use Dotnetduke in project...

Left by Muthupandian on Nov 09, 2008 5:34 PM

# re: Use VS 2005 Web Deployment Project with DotNetNuke
Requesting Gravatar...
Thanks a lot for this. Two Pages in my project were using same code behind and I had no idea abt this because of which I was getting this merging error.
This really worked for me. Thanks a ton!
Left by Rupal on Dec 16, 2010 3:56 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net | Join free