Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsSkinsSkinserror message when creating containers _ help!error message when creating containers _ help!
Previous
 
Next
New Post
2/25/2011 11:19 AM
 
Hi everybody!

I'm a total newbie in creating skins and trying to build my first one according to DNN skinning tutorial.
Everything has gone well up to creating the containers. In tutorial I'm suggested  to create xml files and html structure with tables and add some tokens there.

For some reason I get this error everytime I try to parse the skin and the containers. Am I missing a class that I should initialize or somthing?
Has anyone got the same error when creating the containers?  Too bad that I don't know enough of programming to be able to solve this myself :(

I'm grateful for all the info and help.

/mk

So this is the error I get when trying to parse  the skin&containers:


An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: 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.Containers.ActionButtonList.get_ModuleActions() at DotNetNuke.UI.Containers.ActionButtonList.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Containers.ActionButton.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
 
New Post
2/25/2011 5:30 PM
 
Could you post your container source?
 
New Post
3/6/2011 1:24 AM
 
Hi and great thanks for looking at my post! And sorry for the delay with my reply :(

I thought my message wasn't posted at all cause I didn't find it earlier.

Anyway... here the content of the container follows. (first ascx then xml and html -files). All the code I have in the files are here.

I somehow have a feeling that it's probably something really simple that is wrong or missing.

/Mirka


ASCX-FILE


<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Containers.Container" %>

<%@ Register TagPrefix="dnn" TagName="ACTIONS" Src="~/Admin/Containers/SolPartActions.ascx" %>

<%@ Register TagPrefix="dnn" TagName="ICON" Src="~/Admin/Containers/Icon.ascx" %>

<%@ Register TagPrefix="dnn" TagName="TITLE" Src="~/Admin/Containers/Title.ascx" %>

<%@ Register TagPrefix="dnn" TagName="VISIBILITY" Src="~/Admin/Containers/Visibility.ascx" %>

<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON" Src="~/Admin/Containers/ActionButton.ascx" %>

<%@ Register TagPrefix="dnn" TagName="PRINTMODULE" Src="~/Admin/Containers/PrintModule.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<table border="0" cellpadding="0" cellspacing="0" class="ContainerMainTable">

<tr>

<td style="padding:5px";>

<table border="0" cellpadding="0" cellspacing="0" class="ContainerHeader">

<tr>

<td style="width:5px;"><dnn:ACTIONS runat="server" id="dnnACTIONS" /></td>

<td style="width:5px;"><dnn:ICON runat="server" id="dnnICON" /></td>

<td align="left"><dnn:TITLE runat="server" id="dnnTITLE" /></td>

<td style="width:5px;padding-right:5px;" valign="top"><dnn:VISIBILITY runat="server" id="dnnVISIBILITY" /></td>

<td style="width:5px;"><dnn:ACTIONBUTTON runat="server" id="dnnACTIONBUTTON4" /></td>

</tr>

</table>

</td>

</tr>

<tr>

<td class="ContainerContent"><div runat="server" id="ContentPane"></div></td>

</tr>

<tr>

<td style="padding:5px;">

<table border="0" cellpadding="0" cellspacing="0" class="ContainerFooter">

<tr>

<td><dnn:ACTIONBUTTON runat="server" id="dnnACTIONBUTTON1" /></td>

<td><dnn:ACTIONBUTTON runat="server" id="dnnACTIONBUTTON2" /></td>

<td><dnn:ACTIONBUTTON runat="server" id="dnnACTIONBUTTON3" /></td>

<td style="width:10px;"><dnn:PRINTMODULE runat="server" id="dnnPRINTMODULE" /></td>

</tr>

</table>

</td>

</tr>

 

 

</table>





XML - FILE

 

<Objects>

<Object>

<Token>

[ACTIONBUTTON:1]

</Token>

<Settings>

<Setting>

<Name>CommandName</Name>

<Value>AddContent.Action</Value>

</Setting>

<Setting>

<Name>DisplayIcon</Name>

<Value>True</Value>

</Setting>

<Setting>

<Name>DisplayLink</Name>

<Value>True</Value>

</Setting>

</Settings>

</Object>

<Object>

<Token>

[ACTIONBUTTON:2]

</Token>

<Settings>

<Setting>

<Name>CommandName</Name>

<Value>SyndicateModule.Action</Value>

</Setting>

<Setting>

<Name>DisplayIcon</Name>

<Value>True</Value>

</Setting>

<Setting>

<Name>DisplayLink</Name>

<Value>False</Value>

</Setting>

</Settings>

</Object>

<Object>

<Token>

[ACTIONBUTTON:3]

</Token>

<Settings>

<Setting>

<Name>CommandName</Name>

<Value>ModuleSettings.Action</Value>

</Setting>

<Setting>

<Name>DisplayIcon</Name>

<Value>True</Value>

</Setting>

<Setting>

<Name>DisplayLink</Name>

<Value>False</Value>

</Setting>

</Settings>

</Object>

<Object>

<Token>

[ACTIONBUTTON:4]

</Token>

<Settings>

<Setting>

<Name>CommandName</Name>

<Value>ModuleHelp.Action</Value>

</Setting>

<Setting>

<Name>DisplayIcon</Name>

<Value>True</Value>

</Setting>

<Setting>

<Name>DisplayLink</Name>

<Value>False</Value>

</Setting>

</Settings>

</Object>

</Objects>




HTML-FILE


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<table border="0" cellpadding="0" cellspacing="0" class="ContainerMainTable">

<tr>

<td style="padding:5px";>

<table border="0" cellpadding="0" cellspacing="0" class="ContainerHeader">

<tr>

<td style="width:5px;">[ACTIONS]</td>

<td style="width:5px;">[ICON]</td>

<td align="left">[TITLE]</td>

<td style="width:5px;padding-right:5px;" valign="top">[VISIBILITY]</td>

<td style="width:5px;">[ACTIONBUTTON:4]</td>

</tr>

</table>

</td>

</tr>

<tr>

<td class="ContainerContent">[CONTENTPANE]</td>

</tr>

<tr>

<td style="padding:5px;">

<table border="0" cellpadding="0" cellspacing="0" class="ContainerFooter">

<tr>

<td>[ACTIONBUTTON:1]</td>

<td>[ACTIONBUTTON:2]</td>

<td>[ACTIONBUTTON:3]</td>

<td style="width:10px;">[PRINTMODULE]</td>

</tr>

</table>

</td>

</tr>

 

 

</table>

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsSkinsSkinserror message when creating containers _ help!error message when creating containers _ help!


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