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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN 5 RC2 - Create Module Package does not include App_Code filesDNN 5 RC2 - Create Module Package does not include App_Code files
Previous
 
Next
New Post
12/22/2008 9:35 AM
 

While experimenting with creating DNN 5 module packages to include the new v 5.0 package manifest (Host-->Module Definitions-->Create Package), I have found that when creating a package for a dynamically-compiled (WSP) module the files located in App_Code/<ModuleFolderName> are NOT being included in the zip archive that is produced. Here are the steps to reproduce the issue and what I have discovered so far . . .

1. Start with a new or installed (using v 3.0 manifest) dynamically-compiled (WSP) module with code files located in App_Code/<ModuleFolderName> then attempt to use Host --> Module Definitions --> Create Package with "Use Existing Manifest" not checked.

2. Step 1 of the Create Package wizzard properly identifies the module as dynamically-compiled and displays all the files in the App_Code/<ModuleFolderName> folder with each filename having the prefix "[app_code]".

3. The v 5.0 manifest appears to be correctly built to include the correct <codeSubDirectory> node and a file installer component for the App_Code files. Here is that segment of the created manifest:

<component type="File">
          <files>
            <basePath>App_Code\WESNet_ContentDejour</basePath>
            <file>
              <name>categoryinfo.vb</name>
            </file>
            <file>
              <name>configuration.vb</name>
            </file>
            <file>
              <name>contentdejourcontroller.vb</name>
            </file>

            . . .

            <file>
              <name>utilities.vb</name>
            </file>
          </files>
</component>

4. In the above, the <basePath> is correcly written. However, there is no <path>[app_code]</path> subnode written within each <file> node. As I have not seen a properly constructed v 5.0 manifest for a WSP module, I am not sure if there should or should not be <path>[app_code]</path> subnodes for each file.

5. The zip archive is then created to include the v 5.0 manifest and all files EXCEPT those in the App_Code folder.

6. In starting to debug the DNN 5 RC2 source code last evening, the failure to properly process the App_Code folder files occurs when the newly-created v 5.0 manifest is read and an instance of a the FileInsatller class is created to process this <component> node. While the <basePath> node is read, its value is never used during the following ProcessFiles operation. Since there is no <path>[app_code]</path> sub node within each <file> node, the file installer does not recognize that the files are of InstallFileType.AppCode instead assigning them as InstallFileType.Other.

7. When I add the App_Code files manually to the created package, a later install of the package is successful. In that case, the <basePath> node value is used to recognize that the files should be installed in the App_Code/<ModuleFolderName> folder even though there are no <path>[app_code]</path> subnodes in the manifest.

I have not entered this as a Gemini issue as I first wanted feedback on

1. Has this behavior been noted previously and an issue already created? A Gemini search did not show an already entered isuue but I might have missed it.

2. Should each <file> node in the created manifest segment include a <path>[app_code]</path> subnode? It would seem that the <basePath> node value should be used to determine that these are code files and that <path> subnodes would be redundant.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
12/22/2008 1:32 PM
 

Bill,

First of all, AWESOME recreation steps!

In theory the <basePath> should allow a module manifest to NOT include a <path> element on eacn and every file within the files element.  This is done to help reduce the number of path items needed. 

I have tested the package functionality heavily, howevr only with WAP modules.

if you can re-create this, which it sounds like you can I would log this as a bug in Gemini ASAP!


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
12/22/2008 4:41 PM
 

That would also be my take on the purpose of the <basePath> node.

Not having found this issue already logged after a more extensive Gemini search, I have added it as issue DNNP-8993.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN 5 RC2 - Create Module Package does not include App_Code filesDNN 5 RC2 - Create Module Package does not include App_Code files


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