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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Still struggling to package a simple module for 5.0?Still struggling to package a simple module for 5.0?
Previous
 
Next
New Post
1/8/2009 1:44 PM
 

Hi folks

Just to clarify, can no one tell me how to package a module for 5.0?

To recap my two earlier posts Changes to module zip file for 5.0? and Bug in V5 Extension Package Creation Wizard, I have been going around in ever decreasing circles trying to find a way to package my modules so they upload in 5.0. In response to the first thread, Charles Nurse kindly directed me to here, here and here.

(Is there any better documentation I should be aware of?)

But I still got these errors: File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DNN500Test\Portals\_default\Temp\l2iiq5dn\app_localresources\EditViewGroup.ascx.resx.

So I tried a roundabout route, installing my modules in 4.9.0, then upgrading to 5.0.0 then trying to generate the module package from that. But I got the message:

  A critical error has occurred.
Version string portion was too short or too long.

So I tried again, from a clean 5,0 install, adding a Compiled Module (to get away from any coding errors of mine) and trying to generate the manifest and/or package from that. And got the same bug. So I tried to modify the version numbers of the mainfest generated automatically, and still got the same problem. And it was registered as a bug.

Surely this cannot mean that no one can package modules for 5.0 at this time?

So please, please can someone take a look at the following manifest and tell me what is wrong with it. I am bundling the right files with it... but it isn't even getting as far as not finding them to upload (my original problem).

<dotnetnuke type="Package" version="05.00.00">
  <packages>
    <package name="ModuleTest" type="Module" version="05.00.00">
      <friendlyName>ModuleTest</friendlyName>
      <description>A ModuleTest module</description>
      <owner>
        <name>test</name>
        <organization>test</organization>
        <url>www.test.com</url>
        <email>geoff@test.com</email>
      </owner>
      <license>This package has no license</license>
      <releaseNotes />
      <components>
        <component type="Script">
          <scripts>
            <basePath>DesktopModules\ModuleTest</basePath>
            <script type="Install">
              <name>01.00.00.SqlDataProvider</name>
              <version>01.00.00</version>
            </script>
            <script type="Install">
              <name>ModuleTest.SqlDataProvider</name>
              <version>ModuleTest</version>
            </script>
            <script type="UnInstall">
              <name>Uninstall.SqlDataProvider</name>
              <version>00.00.00</version>
            </script>
          </scripts>
        </component>
        <component type="Module">
          <desktopModule>
            <moduleName>ModuleTest</moduleName>
            <foldername>ModuleTest</foldername>
            <businessControllerClass>YourCompany.Modules.ModuleTest.ModuleTestController</businessControllerClass>
            <supportedFeatures>
              <supportedFeature type="Portable" />
              <supportedFeature type="Searchable" />
            </supportedFeatures>
            <moduleDefinitions>
              <moduleDefinition>
                <friendlyName>ModuleTest</friendlyName>
                <defaultCacheTime>0</defaultCacheTime>
                <moduleControls>
                  <moduleControl>
                    <controlKey />
                    <controlSrc>DesktopModules/ModuleTest/ViewModuleTest.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle />
                    <controlType>View</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                  <moduleControl>
                    <controlKey>Edit</controlKey>
                    <controlSrc>DesktopModules/ModuleTest/EditModuleTest.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>Edit Content</controlTitle>
                    <controlType>Edit</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                  <moduleControl>
                    <controlKey>Settings</controlKey>
                    <controlSrc>DesktopModules/ModuleTest/Settings.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>ModuleTest Settings</controlTitle>
                    <controlType>Edit</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                </moduleControls>
              </moduleDefinition>
            </moduleDefinitions>
          </desktopModule>
          <eventMessage>
            <processorType>DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke</processorType>
            <processorCommand>UpgradeModule</processorCommand>
            <attributes>
              <businessControllerClass>YourCompany.Modules.ModuleTest.ModuleTestController</businessControllerClass>
              <desktopModuleID>[DESKTOPMODULEID]</desktopModuleID>
              <upgradeVersionsList>01.00.00</upgradeVersionsList>
            </attributes>
          </eventMessage>
        </component>
        <component type="Assembly">
          <assemblies>
            <basePath>bin</basePath>
            <assembly>
              <name>ModuleTest.dll</name>
            </assembly>
          </assemblies>
        </component>
        <component type="File">
          <files>
            <basePath>DesktopModules\ModuleTest</basePath>
            <file>
              <path>app_localresources</path>
              <name>EditModuleTest.ascx.resx</name>
            </file>
            <file>
              <path>app_localresources</path>
              <name>Settings.ascx.resx</name>
            </file>
            <file>
              <path>app_localresources</path>
              <name>ViewModuleTest.ascx.resx</name>
            </file>
            <file>
              <name>ModuleTest.dnn</name>
            </file>
            <file>
              <path>documentation</path>
              <name>Documentation.css</name>
            </file>
            <file>
              <path>documentation</path>
              <name>Documentation.html</name>
            </file>
            <file>
              <path>documentation</path>
              <name>logo.gif</name>
            </file>
            <file>
              <name>EditModuleTest.ascx</name>
            </file>
            <file>
              <name>Settings.ascx</name>
            </file>
            <file>
              <name>ViewModuleTest.ascx</name>
            </file>
          </files>
        </component>
      </components>
    </package>
  </packages>
</dotnetnuke>

Many thanks in advance.

Geoffrey


Geoffrey Morton-Haworth www.yalaworld.net
 
New Post
1/8/2009 5:04 PM
 

Geoffrey,

You had a typing error in your manifest file. Here is the corrected entries, it worked fine for me...

<dotnetnuke type="Package" version="5.0">
  <packages>
    <package name="ModuleTest" type="Module" version="1.0.0">
      <friendlyName>ModuleTest</friendlyName>
      <description>A ModuleTest module</description>
      <owner>
        <name>test</name>
        <organization>test</organization>
        <url>www.test.com</url>
        <email>geoff@test.com</email>
      </owner>
      <license>This package has no license</license>
      <releaseNotes />
      <components>
        <component type="Script">
          <scripts>
            <basePath>DesktopModules\ModuleTest</basePath>
            <script type="Install">
              <name>01.00.00.SqlDataProvider</name>
              <version>01.00.00</version>
            </script>
            <script type="UnInstall">
              <name>Uninstall.SqlDataProvider</name>
              <version>1.0.0</version>
            </script>
          </scripts>
        </component>
        <component type="Module">
          <desktopModule>
            <moduleName>ModuleTest</moduleName>
            <foldername>ModuleTest</foldername>
            <businessControllerClass>YourCompany.Modules.ModuleTest.ModuleTestController</businessControllerClass>
            <supportedFeatures>
              <supportedFeature type="Portable" />
              <supportedFeature type="Searchable" />
            </supportedFeatures>
            <moduleDefinitions>
              <moduleDefinition>
                <friendlyName>ModuleTest</friendlyName>
                <defaultCacheTime>0</defaultCacheTime>
                <moduleControls>
                  <moduleControl>
                    <controlKey />
                    <controlSrc>DesktopModules/ModuleTest/ViewModuleTest.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle />
                    <controlType>View</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                  <moduleControl>
                    <controlKey>Edit</controlKey>
                    <controlSrc>DesktopModules/ModuleTest/EditModuleTest.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>Edit Content</controlTitle>
                    <controlType>Edit</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                  <moduleControl>
                    <controlKey>Settings</controlKey>
                    <controlSrc>DesktopModules/ModuleTest/Settings.ascx</controlSrc>
                    <supportsPartialRendering>False</supportsPartialRendering>
                    <controlTitle>ModuleTest Settings</controlTitle>
                    <controlType>Edit</controlType>
                    <iconFile />
                    <helpUrl />
                    <viewOrder>0</viewOrder>
                  </moduleControl>
                </moduleControls>
              </moduleDefinition>
            </moduleDefinitions>
          </desktopModule>
          <eventMessage>
            <processorType>DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke</processorType>
            <processorCommand>UpgradeModule</processorCommand>
            <attributes>
              <businessControllerClass>YourCompany.Modules.ModuleTest.ModuleTestController</businessControllerClass>
              <desktopModuleID>[DESKTOPMODULEID]</desktopModuleID>
              <upgradeVersionsList>01.00.00</upgradeVersionsList>
            </attributes>
          </eventMessage>
        </component>
        <component type="Assembly">
          <assemblies>
            <basePath>bin</basePath>
            <assembly>
              <name>ModuleTest.dll</name>
            </assembly>
          </assemblies>
        </component>
        <component type="File">
          <files>
            <basePath>DesktopModules\ModuleTest</basePath>
            <file>
              <path>app_localresources</path>
              <name>EditModuleTest.ascx.resx</name>
            </file>
            <file>
              <path>app_localresources</path>
              <name>Settings.ascx.resx</name>
            </file>
            <file>
              <path>app_localresources</path>
              <name>ViewModuleTest.ascx.resx</name>
            </file>
            <file>
              <name>ModuleTest.dnn</name>
            </file>
            <file>
              <path>documentation</path>
              <name>Documentation.css</name>
            </file>
            <file>
              <path>documentation</path>
              <name>Documentation.html</name>
            </file>
            <file>
              <path>documentation</path>
              <name>logo.gif</name>
            </file>
            <file>
              <name>EditModuleTest.ascx</name>
            </file>
            <file>
              <name>Settings.ascx</name>
            </file>
            <file>
              <name>ViewModuleTest.ascx</name>
            </file>
          </files>
        </component>
      </components>
    </package>
  </packages>
</dotnetnuke>

 

Hope this helps.

 

tb

 
New Post
1/8/2009 6:00 PM
 

Hi tb (and all you other folks)

Very helpful for your first two posts. Thank you.

Comparing the two files, the difference is in the package version numbers and the repetition of the install script here:

        <component type="Script">
          <scripts>
            <basePath>DesktopModules\ModuleTest</basePath>
            <script type="Install">
              <name>01.00.00.SqlDataProvider</name>
              <version>01.00.00</version>
            </script>
            <script type="Install">
              <name>ModuleTest.SqlDataProvider</name>
              <version>ModuleTest</version>
            </script>

            <script type="UnInstall">
              <name>Uninstall.SqlDataProvider</name>
              <version>00.00.00</version>
            </script>
          </scripts>
        </component>

Have I missed anything else? This is important because I didn't  type this script, it was created by the Package Extension Wizard so it will help whoever is debugging it to know everything that is wrong.

But mow I am getting the same old "can't find the file" errors...
 

StartJob Reading files
Info File ModuleTest\01.00.00.SqlDataProvider read successfully
Info File ModuleTest\Documentation.css read successfully
Info File ModuleTest\Documentation.html read successfully
Info File ModuleTest\EditModuleTest.ascx read successfully
Info File ModuleTest\EditModuleTest.ascx.resx read successfully
Info File ModuleTest\logo.gif read successfully
Info File ModuleTest\ModuleTest.dll read successfully
Info File ModuleTest\moduletest.dnn read successfully
Info File ModuleTest\ModuleTest.SqlDataProvider read successfully
Info File ModuleTest\Settings.ascx read successfully
Info File ModuleTest\Settings.ascx.resx read successfully
Info File ModuleTest\Uninstall.SqlDataProvider read successfully
Info File ModuleTest\ViewModuleTest.ascx read successfully
Info File ModuleTest\ViewModuleTest.ascx.resx read successfully
EndJob Reading files done.
 
StartJob Reading Installation Manifest file
Info Reading Package Manifest - Module - ModuleTest
Info Reading Component Manifest - Script
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\01.00.00.SqlDataProvider
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\Uninstall.SqlDataProvider
Info Reading Component Manifest - Module
Info Reading Component Manifest - Assembly
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\bin\ModuleTest.dll
Info Reading Component Manifest - File
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\app_localresources\EditModuleTest.ascx.resx
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\app_localresources\Settings.ascx.resx
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\app_localresources\ViewModuleTest.ascx.resx
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\ModuleTest.dnn
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\documentation\Documentation.css
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\documentation\Documentation.html
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\documentation\logo.gif
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\EditModuleTest.ascx
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\Settings.ascx
Failure File specified in the dnn could not be found in the zip file: - C:\DotNetNuke\DevEnv500\Portals\_default\Temp\yne111l5\ViewModuleTest.ascx

 

Back to my first post. If it worked for you have you any thoughts on what I am doing wrong. I am putting all the files in one folder and zipping them up. Am I missing anything?

Kind regards

Geoffrey


Geoffrey Morton-Haworth www.yalaworld.net
 
New Post
1/9/2009 11:56 AM
 

Geoffrey,

What is the contents of the packaged zipped file you are trying to install from? My guess is the files listed in red color above are actually missing from the packaged file. Please check.

-tb

 
New Post
1/9/2009 1:59 PM
 

Thanks tb

Good thought. So I have checked again. Every one of those files is there. Any other suggestions? Is anyone else having this problem?

Kind regards

Geoffrey


Geoffrey Morton-Haworth www.yalaworld.net
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Still struggling to package a simple module for 5.0?Still struggling to package a simple module for 5.0?


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