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...Using Modules a...Using Modules a...File locations in module manifest File locations in module manifest
Previous
 
Next
New Post
10/4/2011 3:07 PM
 
Hi all

Can anybody with experience of module developing give me a hand to sort out some confusion I have? I'm trying to manually write a manifest file for my own module, which is just made up of the standard set of user controls, scripts, referenced DLLs etc. However, the module install is acting strange, and I cannot successfully install the module. The install procedure just hangs, in DNN 6.0.1. I'm working on the basis that I have an incorrectly written manifest file, and I think I need to clarify what the exact purpose of the various file location nodes are, i.e.

<component type="Script"> ...
<component type="Module"> ...
<component type="Assembly"> ...
<component type="ResourceFile"> ...

In particular, each of these seems to need to contain some combination of <basepath> and <path>, nodes. But, are these to tell DNN where to look for files relative to the manifest file, in order to locate them prior to installation, or instead, are they the required destinations for files after installation. Its probably supposed to be so obvious, that's why it doesn't seem to be specified in the documentation.

Does each component use the <basepath> and <path> nodes consistently, or does it vary for different types of components?

Also, is there a required order for the different <component type= ...> nodes that I need to adhere to in order to persuade DNN to handle my manifest file successfully?

Thanks if you can clarify any of this for me.

 
New Post
10/4/2011 10:19 PM
 
FYI the manifest is fully documented in the wiki - http://www.dotnetnuke.com/Resources/Wiki/loc/allpages/Cat/Manifest.aspx . There is no order required for different nodes.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/5/2011 6:52 AM
 
Although I have read the wiki already, I did find the Module component documentation a bit too cursory. Although my problem may or may not be to do with file locations, I could not find enough reliable examples on which to compare my file. I'm having trouble because the module install just silently fails, so even though the manifest looks OK to me from what is documented, I must be doing something wrong, hence I thought some more detailed examples would be useful. I did post about this before but unfortunately didn't get too far then either, here is what I originally was asking about, although now I am still having the same problem in DNN 6.0.1:

-------------------------------------------
"I have a DNN module compiled into a DLL from a VS 2008 'DNN Compiled module' solution, but I am having trouble with the installation into DNN 5.6.

I wanted to manually created a manifest, but I think my attempts so far have been incorrect, as the install from the Module Definitions page appears to silently fail, and the module is not properly registered with DNN. I think my confusion is about how to present the DLL in the manifest file, but I cannot find an appropriate example to follow for the new manifest format for version 5.x.

At the moment I am trying to use the 'Assembly' manifest component node, perhaps this is where my trouble lies. My question is, can you point me in the direction of an example manifest that corresponds to my scenario. Should I be still using the 'Module' component node, or is this specifically for ASCX files? If I have a compiled DLL containing all my controls already, how do I include the DLL in the manifest so that DNN will install the modules correctly?"
-------------------------------------

Thanks if you can advise



 
New Post
10/5/2011 6:42 PM
 
if you look through the source for *.dnn files you'll find a few examples and they all tend to a similar style (where the dll's are placed via the assembly component and additional files are handled via a component node using ResourceFile (which is a zip of all the files for your module folder - this also allows you to preserve folder structures without havin to use lots of basePath references) personally i prefer it to having to list many files under a component type="file" node) e.g.

<component type="Assembly">
          <assemblies>
            <assembly>
              <path>bin</path>
              <name>your.dll</name>
            </assembly>
          </assemblies>
        </component>
<component type="ResourceFile">
     <resourceFiles>
      <basePath>DesktopModules\yourmodulename</basePath>
      <resourceFile>
       <name>resources.zip</name>
      </resourceFile>
     </resourceFiles>
    </component>


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/6/2011 5:59 AM
 
OK thanks for that. I just need to ask: should the resources.zip archive contain the *.ascx files for my user controls, and the *.dll files containing my precompiled code, that have already been referenced in the manifest under the <component type="Module">, <component type="Assembly"> nodes etc., or should it only contain supplementary file types that are not covered by those dedicated nodes, i.e., should it only include files that would otherwise go into <component type="File"> node: images, text files etc. In particular I am not sure if the resources.zip should include my *.resx resource files, or whether they will be picked up automatically by the DNN module installer.

It would be great if you could clarify this for me.

Cheers

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...File locations in module manifest File locations in module manifest


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