Use VS 2005 Web Deployment Project with DotNetNuke

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 @ Thursday, May 4, 2006 10:27 AM
Print

Comments on this entry:

# re: Use VS 2005 Web Deployment Project with DotNetNuke

Left by Jan de Vos at 5/26/2006 4:10 AM
Gravatar
Yes Yes !! wow
Thanks a lot, I was looking and looking and looking...

# re: Use VS 2005 Web Deployment Project with DotNetNuke

Left by Jan at 6/30/2006 9:34 AM
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

# re: Use VS 2005 Web Deployment Project with DotNetNuke

Left by Michael Freidgeim at 6/30/2006 10:19 AM
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

# re: Use VS 2005 Web Deployment Project with DotNetNuke

Left by Chris Hammond at 11/2/2006 8:27 AM
Gravatar
Thanks Michael, this helped me out this afternoon.

# re: Use VS 2005 Web Deployment Project with DotNetNuke

Left by Derek Smyth at 3/16/2007 9:36 PM
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.

# how to use dotnet duke in my project

Left by Gopal chauhan at 9/23/2008 1:15 AM
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

# re: Use VS 2005 Web Deployment Project with DotNetNuke

Left by Muthupandian at 11/9/2008 5:34 PM
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...

# re: Use VS 2005 Web Deployment Project with DotNetNuke

Left by Rupal at 12/16/2010 3:56 AM
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!

Your comment:



(not displayed)

 
 
 
 
 

Live Comment Preview:

 
«August»
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456