Hi,
I have delete my control key, Then that error has fixed. Now i can see my modules in my page, But except my main module others show error.
Error: AddCharity is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
When i put breakpoint to each page load , breakpoint only working in first module. Others breakpoint not working, That mean it not invoking page load.
My Install sqlscript i have only one table
CREATE TABLE {databaseOwner}[{objectQualifier}YourCompany_Charity]
(
[ModuleID] [int] NOT NULL,
[ItemID] [int] NOT NULL IDENTITY(1, 1),
[Content] [ntext] NOT NULL,
[CreatedByUser] [int] NOT NULL,
[CreatedDate] [datetime] NOT NULL
)
Do i want create tables to other my sub modules?
Here is my new .dnn file
<dotnetnuke type="Package" version="5.0">
<packages><package name="Charity" type="Module" version="1.0.0">
<friendlyName>Charity</friendlyName>
<description>Charity </description>
<iconFile />
<owner>
<name>admin</name>
<organization>ss</organization>
<url />
<email />
</owner>
<license>The license for this package is not currently included within the installation file, please check with the vendor for full license details.</license>
<releaseNotes>This package has no Release Notes</releaseNotes>
<components>
<component type="Script">
<scripts>
<basePath>DesktopModules\Charity</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>Charity</moduleName>
<foldername>Charity</foldername>
<businessControllerClass />
<supportedFeatures />
<moduleDefinitions>
<moduleDefinition>
<friendlyName>Charity</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey>EditCharity</controlKey>
<controlSrc>DesktopModules/Charity/EditCharity.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>EditCharity</controlTitle>
<controlType>Edit</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>False</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
<moduleControl>
<controlKey>Settingcharity</controlKey>
<controlSrc>DesktopModules/Charity/Settings.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle>Settingcharity</controlTitle>
<controlType>Edit</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>False</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
<moduleControl>
<controlKey/>
<controlSrc>DesktopModules/Charity/ViewCharity.ascx</controlSrc>
<supportsPartialRendering>True</supportsPartialRendering>
<controlTitle>Viewcharity</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>True</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>AddCharity</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey/>
<controlSrc>DesktopModules/Charity/AddCharity.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle >ViewaddCharity</controlTitle >
<controlType>View</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>False</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>AddCharityEvent</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey/>
<controlSrc>DesktopModules/Charity/AddCharityEvent.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle >addcharityEvent</controlTitle >
<controlType>View</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>False</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>CreateCharityPage</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey/>
<controlSrc>DesktopModules/Charity/CreatePage.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle >Createpage</controlTitle >
<controlType>View</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>False</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>CharityDonation</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey/>
<controlSrc>DesktopModules/Charity/Donation.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle >Donation</controlTitle >
<controlType>View</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>False</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
<moduleDefinition>
<friendlyName>ViewCharityEvent</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey/>
<controlSrc>DesktopModules/Charity/ViewEvent.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle >ViewEvent</controlTitle >
<controlType>View</controlType>
<iconFile />
<helpUrl />
<supportsPopUps>False</supportsPopUps>
<viewOrder>0</viewOrder>
</moduleControl>
</moduleControls>
</moduleDefinition>
</moduleDefinitions>
</desktopModule>
</component>
<component type="Assembly">
<assemblies>
<basePath>bin</basePath>
<assembly>
<name>YourCompany.Modules.Charity.dll</name>
</assembly>
</assemblies>
</component>
<component type="File">
<files>
<basePath>DesktopModules\Charity</basePath>
<file>
<path>App_LocalResources</path>
<name>EditCharity.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>Settings.ascx.resx</name>
</file>
<file>
<path>App_LocalResources</path>
<name>ViewCharity.ascx.resx</name>
</file>
<file>
<name>AddCharity.ascx</name>
</file>
<file>
<name>AddCharityEvent.ascx</name>
</file>
<file>
<name>CreatePage.ascx</name>
</file>
<file>
<name>Donation.ascx</name>
</file>
<file>
<name>ViewEvent.ascx</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>EditCharity.ascx</name>
</file>
<file>
<name>Settings.ascx</name>
</file>
<file>
<name>ViewCharity.ascx</name>
</file>
</files>
</component>
</components>
</package></packages>
</dotnetnuke>