I have amended the Documents Module and want to create an install .zip for it. I've tried this using the "Create Module Package" within Host Module Definitions. However this creates a zip file that fails when I try to install it in a new site.
I don't think the DNN file is creating the Zip correctly using "Create Module Package". There are a few abnormalities, e.g. resx files appear twice and there is only one DotNetNuke.Modules.Documents.dll and not a corresponding DotNetNuke.Modules.Documents.SqlDataProvider.dll as specified in the DNN file. Nor is there a bundled source.zip file like in the original Documents.zip source I downloaded from dotnetnuke.com
Errors:
StartJob |
Reading DNN file |
Info |
DNN file is in valid 3.0 format. |
Info |
xml loaded. |
Failure |
ResourceFile specified in the dnn could not be found in the zip file: DNN_Documents_source.zip |
Info |
Loading files info |
Info |
Found valid path (App_LocalResources) for Document.ascx.resx. |
Info |
Found valid path (App_LocalResources) for EditDocs.ascx.resx. |
Info |
Found valid path (App_LocalResources) for EditDocumentsSettings.ascx.resx. |
Failure |
File specified in the dnn could not be found in the zip file: DotNetNuke.Modules.Documents.SqlDataProvider.dll |
Failure |
File specified in the dnn could not be found in the zip file: 03.01.00.SqlDataProvider |
Failure |
File specified in the dnn could not be found in the zip file: 03.01.01.SqlDataProvider |
Failure |
File specified in the dnn could not be found in the zip file: 03.01.02.SqlDataProvider |
Failure |
File specified in the dnn could not be found in the zip file: Uninstall.SqlDataProvider |
Info |
Loading Modules info |
Info |
Loading Control info for 'Documents' module |
Failure |
ExceptionSystem.Exception: Dnn load failed, aborting at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnAdapter_V2.ReadDnn() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install() |
My project is set up in the following way in VS2005:
http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/111/threadid/109915/scope/posts/Default.aspx
DNN file
<dotnetnuke version="3.0" type="Module">
<folders>
<folder>
<name>DNN_Documents</name>
<friendlyname>Documents</friendlyname>
<foldername>Documents</foldername>
<modulename>DNN_Documents</modulename>
<description>This module renders a list of documents, including links to browse or download the document. Documents includes an edit page, which allows authorized users to edit the information about the Documents (for example, a friendly title) stored in the SQL database.</description>
<version>03.01.06</version>
<businesscontrollerclass>DotNetNuke.Modules.Documents.DocumentController, DotNetNuke.Modules.Documents</businesscontrollerclass>
<resourcefile>DNN_Documents_source.zip</resourcefile>
<modules>
<module>
<friendlyname>Documents</friendlyname>
<cachetime>0</cachetime>
<controls>
<control>
<src>DesktopModules/Documents/Document.ascx</src>
<type>View</type>
<helpurl>http://www.dotnetnuke.com/default.aspx?tabid=787</helpurl>
</control>
<control>
<key>Edit</key>
<title>Edit Documents</title>
<src>DesktopModules/Documents/EditDocs.ascx</src>
<type>Edit</type>
<helpurl>http://www.dotnetnuke.com/default.aspx?tabid=787</helpurl>
</control>
<control>
<key>Settings</key>
<title>Documents Settings</title>
<src>DesktopModules/Documents/EditDocumentsSettings.ascx</src>
<type>Edit</type>
<helpurl>http://www.dotnetnuke.com/default.aspx?tabid=787</helpurl>
</control>
</controls>
</module>
</modules>
<files>
<file>
<name>DotNetNuke.Modules.Documents.dll</name>
</file>
<file>
<name>Document.ascx</name>
</file>
<file>
<name>EditDocs.ascx</name>
</file>
<file>
<name>EditDocumentsSettings.ascx</name>
</file>
<file>
<name>module.css</name>
</file>
<file>
<path>App_LocalResources</path>
<name>Document.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>EditDocs.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>EditDocumentsSettings.ascx.resx</name>
</file>
<file>
<name>DotNetNuke.Modules.Documents.SqlDataProvider.dll</name>
</file>
<file>
<name>03.01.00.SqlDataProvider</name>
</file>
<file>
<name>03.01.01.SqlDataProvider</name>
</file>
<file>
<name>03.01.02.SqlDataProvider</name>
</file>
<file>
<name>Uninstall.SqlDataProvider</name>
</file>
</files>
</folder>
</folders>
</dotnetnuke>