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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can I specify more than one module in a single package?Can I specify more than one module in a single package?
Previous
 
Next
New Post
10/29/2009 3:43 PM
 

Hi all,

I'm a DNN newbie, so bear with me.

I'm using DNN 5, and am developing an internal reporting solution that uses custom modules on different pages - for example, the Reports page has a "Reporting" module that displays reporting information, the Charts page has a "Charting" module that displays charts, etc. Each of the modules requires its own ascx control(s), but shares the same common library code.

Is it possible to package all of this into a single package, defined within a single .dnn manifest? If so, how?

I've got the installation working fine with a single Module, but when I specify a second <component> element for a second module then the package installs successfully, but then when I navigate to a page I get a module load exception:

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.ControlPanels.IconBar.BindData() at DotNetNuke.UI.ControlPanels.IconBar.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

I don't know whether it's possible to do what I want to do with the new manifest file, or whether I need a separate package for each Module - in which case, how do I handle the common code (they use the same dlls)?

Any help or insight you can provide will be much appreciated.

Kind regards,

Peter.

 

 

 
New Post
10/30/2009 7:08 AM
 

I've come back in this morning and the reason for the error is obvious: in factoring out the second module's information into a separate package I'd neglected to delete the second <component> element from the first dnn manifest. Silly me - that's what you get for working late.

Given that I can now successfully create and install the two separate packages (and it works) I'll proceed in this fashion, and will assume that it's not possible to include more than one module in a package.

I'll leave this thread as unresolved just in case someone is able to prove otherwise.

 

Cheers,

Peter

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can I specify more than one module in a single package?Can I specify more than one module in a single package?


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