Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModuleswhy does manifest v5 format use package friendlyname as desktopmodule friendlyname?why does manifest v5 format use package friendlyname as desktopmodule friendlyname?
Previous
 
Next
New Post
5/19/2010 7:34 AM
 
I've lost several hours trying to figure out how to put multiple Modules (as in modules I can select in the 'Add Module' drop-down at the top of a page I'm editing), into a single installation package using the version 5 format of the .dnn manifest file.

I've produced a really simple VS2008 project that has two modules and builds 4 variations of the installation package.

you can find it here: http://drop.io/damphlett/asset/dnnmul...

I'm really trying to get the 'DNNMultipleModulePackageExample-2C.zip to work - that one has two
  component type="module" 
sections in it. each with it's own module definition.

What I'm finding is that on installation (into a clean 05.04.01) it creates two entries in the DesktopModules table. However both have the same FriendlyName - that is the package friendly name from "/dotnetnuke/packages/package/friendlyName" in the manifest, not the friendly name of the desktopModule from "/dotnetnuke/packages/package/components/component[@type='Module']/desktopModule/friendlyName".

I get exceptions on viewing most pages from that point on:

DotNetNuke.Services.Exceptions.ModuleLoadException: An entry with the same key already exists. ---> System.ArgumentException: An entry with the same key already exists. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value) at DotNetNuke.Entities.Modules.DesktopModuleController.GetPortalDesktopModules(Int32 portalID) at DotNetNuke.UI.ControlPanel.AddModule.LoadModuleList() in C:\inetpub\wwwroot\ScatteredFist\trunk\Admin\ControlPanel\AddModule.ascx.vb:line 266 at DotNetNuke.UI.ControlPanel.AddModule.LoadAllLists() in C:\inetpub\wwwroot\ScatteredFist\trunk\Admin\ControlPanel\AddModule.ascx.vb:line 211 at DotNetNuke.UI.ControlPanel.AddModule.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\ScatteredFist\trunk\Admin\ControlPanel\AddModule.ascx.vb:line 81 --- End of inner exception stack trace ---

However, if I go into the database and JUST tweak the friendlyName of one of the two DesktopModules to be different (say by adding a 'b' on the end of the second one), everything works fine. They both appear in the drop down list and I can add them independently to pages.

I suggest that using the .dnn package/friendlyName to populate the DesktopModule.friendlyName database field is a bug, and that the .dnn DesktopModule/friendlyName should be used instead (at least if it's specified - maybe package/friendlyName could be a default if it isn't specified at the DesktopModule level)

Of course - it's quite possible I've been a total muppet and done all this wrong - comments, corrections, suggestions much appreciated.
 
New Post
5/20/2010 1:34 PM
 
Dug into the DotNetNuke code base and I think I've figured the tweaks to fix this - just don't know if there's an official way to submit the bug and/or patch ?!?
 
New Post
5/24/2010 9:07 AM
Accepted Answer 
finally found you submit bugs via support.dotnetnuke.com (thanks no-one for mentioning it) - and this bug is already in there with the exact code fix I figured myself - that's a day of my life I've never get back. Anyway - to help any other poor muppets looking into this - here's the bug entry... http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=12346&PROJID=2
 
New Post
6/4/2010 2:31 AM
 
Thanks for posting, I am having the same problem, see my post of packages vs components.  I want to do the exact thing you are doing and running into some of the same problems.
I hadn't investigated why I was getting this error yet.

Jeff Martin
MCSD C#
 
New Post
6/4/2010 2:47 AM
 
As a followup - it looks like any fix for this is in a rejected state right now. http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=12346&PROJID=2

Jeff Martin
MCSD C#
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModuleswhy does manifest v5 format use package friendlyname as desktopmodule friendlyname?why does manifest v5 format use package friendlyname as desktopmodule friendlyname?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out