Folks,
I've tried creating a package in a DNN501 install, and I getting the error "Input string was not in a correct format" in this routine:
Private Sub CreatePackage()
Dim manifestName As String = txtManifestName.Text
If String.IsNullOrEmpty(manifestName) Then
manifestName = txtArchiveName.Text.ToLower().Replace("zip", "dnn")
End If
If chkPackage.Checked Then
'Use the installer to parse the manifest and load the files that need to be packaged
Dim installer As New Installer(Package, Request.MapPath(".")) <<<<<<------------------ On this line. The MapPath looks right.
For Each file As InstallFile In installer.InstallerInfo.Files.Values
_Writer.AddFile(file)
Next
_Writer.CreatePackage(Path.Combine(HostMapPath, txtArchiveName.Text), manifestName, Package.Manifest, Not chkUseManifest.Checked)
ElseIf chkManifest.Checked Then
_Writer.WriteManifest(manifestName, Package.Manifest)
End If
phInstallLogs.Controls.Add(_Writer.Log.GetLogsTable)
End Sub
What gives? I've attached by manifest file. Is there something wrong with it?
As always, thanks a bunch.
AldenG
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="SIMS.Teachers" type="Module" version="5.0.0">
<friendlyName>SIMS Teachers</friendlyName>
<description />
<owner>
<name />
<organization />
<url />
<email />
</owner>
<license />
<releaseNotes />
<components>
<component type="Script">
<scripts>
<basePath>DesktopModules\SIMS Teachers</basePath>
<script type="Install">
<name>01.00.00.SIMSTeachers.sqldataprovider</name>
<version>01.00.00.SIMSTeachers</version>
</script>
</scripts>
</component>
<component type="Module">
<desktopModule>
<moduleName>SIMS.Teachers</moduleName>
<foldername>SIMS Teachers</foldername>
<businessControllerClass>DotNetNuke.Modules.DharmaTalks.TeachersController</businessControllerClass>
<supportedFeatures>
<supportedFeature type="Searchable" />
</supportedFeatures>
<moduleDefinitions>
<moduleDefinition>
<friendlyName>Teacher List</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey />
<controlSrc>DesktopModules/SIMS Teachers/ViewTeachers.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Teacher List</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
</moduleControl>
<moduleControl>
<controlKey>Edit</controlKey>
<controlSrc>DesktopModules/SIMS Teachers/EditTeacher.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Edit Teacher</controlTitle>
<controlType>Edit</controlType>
<iconFile />
<helpUrl />
</moduleControl>
<moduleControl>
<controlKey>Settings</controlKey>
<controlSrc>DesktopModules/SIMS Teachers/SettingsTeachers.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Teacher List Settings</controlTitle>
<controlType>Edit</controlType>
<iconFile />
<helpUrl />
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>Teacher Detail</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey />
<controlSrc>DesktopModules/SIMS Teachers/ViewTeacher.ascx</controlSrc>
<supportsPartialRendering>True</supportsPartialRendering>
<controlTitle>View Teacher</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
</moduleControl>
<moduleControl>
<controlKey>Settings</controlKey>
<controlSrc>DesktopModules/SIMS Teachers/SettingsTeacher.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Teacher Detail Settings</controlTitle>
<controlType>Edit</controlType>
<iconFile />
<helpUrl />
</moduleControl>
</moduleControls>
</moduleDefinition>
</moduleDefinitions>
</desktopModule>
<eventMessage>
<processorType>DotNetNuke.Entities.Modules.EventMessageProcessor, DotNetNuke</processorType>
<processorCommand>UpgradeModule</processorCommand>
<attributes>
<businessControllerClass>DotNetNuke.Modules.DharmaTalks.TeachersController</businessControllerClass>
<desktopModuleID>[DESKTOPMODULEID]</desktopModuleID>
<upgradeVersionsList>01.00.00.SIMSTeachers</upgradeVersionsList>
</attributes>
</eventMessage>
</component>
<component type="File">
<files>
<basePath>DesktopModules\SIMS Teachers</basePath>
<file>
<name>EditTeacher.ascx</name>
</file>
<file>
<name>EditTeacher.ascx.cs</name>
</file>
<file>
<name>Module.css</name>
</file>
<file>
<name>SettingsTeacher.ascx</name>
</file>
<file>
<name>SettingsTeacher.ascx.cs</name>
</file>
<file>
<name>SettingsTeachers.ascx</name>
</file>
<file>
<name>SettingsTeachers.ascx.cs</name>
</file>
<file>
<name>ViewTeacher.ascx</name>
</file>
<file>
<name>ViewTeacher.ascx.cs</name>
</file>
<file>
<name>ViewTeachers.ascx</name>
</file>
<file>
<name>ViewTeachers.ascx.cs</name>
</file>
</files>
</component>
</components>
</package>
</packages>
</dotnetnuke>