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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error occured by uploading containerError occured by uploading container
Previous
 
Next
New Post
6/6/2006 1:34 AM
 

Dear dnn-users

I've problem and I can't figured out...
There is always an error that occured by uploading a container. I use DNN - Version 4.0.3

Can anyone help me? Two errors occurs (by the SyndicateModule and by the PrintModule) when using this containers. Uploading goes perfect.

The following error: 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.Containers.ActionButton.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

It seems that dnn can not find the IconFile that is set and that is in the same folder as the container.

container.xml

<Objects>
  <Object>
    <Token>[TITLE]</Token>
    <Settings>
      <Setting>
        <Name>CssClass</Name>
        <Value>ConTtle</Value>
      </Setting>
    </Settings>
  </Object>
  <Object>
    <Token>[VISIBILITY]</Token>
    <Settings>
      <Setting>
        <Name>BorderWidth</Name>
        <Value>0</Value>
      </Setting>
      <Setting>
        <Name>MinIcon</Name>
        <Value>Min.gif</Value>
      </Setting>
      <Setting>
        <Name>MaxIcon</Name>
        <Value>Max.gif</Value>
      </Setting>
    </Settings>
  </Object>
  <Object>
    <Token>[ACTIONBUTTON:1]</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>
      <Setting>
        <Name>IconFile</Name>
        <Value>Xml.gif</Value>
      </Setting>
    </Settings>
  </Object>
  <Object>
    <Token>[ACTIONBUTTON:2]</Token>
    <Settings>
      <Setting>
        <Name>CommandName</Name>
        <Value>PrintModule.Action</Value>
      </Setting>
      <Setting>
        <Name>IconFile</Name>
        <Value>Print.gif</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>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: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>
  <Object>
    <Token>[ACTIONBUTTON:5]</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>
</Objects>

GrayBlue-Con01.html

<table class="W100P PL5 PB5" border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td class="W100P">
  <table class="HeadBrdr00 HeadBrdr01" border="0" cellpadding="0" cellspacing="0">
   <tr>
    <td class="HeadCntr00 HeadCntr01">
    <table class="W100P" border="0" cellpadding="0" cellspacing="0">
     <tr>
      <td class="Icon00 Icon01">[ICON]</td>
      <td class="Ttle00 ConTtle Ttle01">[TITLE]</td>
      <td class="Imge">[ACTIONBUTTON:1]</td>
      <td class="Imge">[ACTIONBUTTON:2]</td>
      <td class="Imge">[VISIBILITY]</td>
     </tr>
    </table>
    </td>
   </tr>
  </table>
  <table class="ContBrdr01" border="0" cellpadding="0" cellspacing="0">
   <tr>
    <td class="Cont00 Cont01" id="ContentPane" runat="server"></td>
   </tr>
  </table>
  <table class="W100P" border="0" cellpadding="0" cellspacing="0">
   <tr>    
    <td class="Nwrp">[ACTIONS]</td>
    <td class="Nwrp">[ACTIONBUTTON:3]</td>
    <td class="Nwrp">[ACTIONBUTTON:4]</td>
    <td class="Nwrp W100P">&nbsp;</td>
    <td class="Nwrp HoAlRi">[ACTIONBUTTON:5]</td>
   </tr>
  </table>
  </td>
 </tr>
</table>


GrayBlue-Con01.ascx

<%@ Control language="vb" CodeBehind="~/admin/Containers/container.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Containers.Container" %>
<%@ Register TagPrefix="dnn" TagName="ICON" Src="~/Admin/Containers/Icon.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TITLE" Src="~/Admin/Containers/Title.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON1" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON2" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="VISIBILITY" Src="~/Admin/Containers/Visibility.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONS" Src="~/Admin/Containers/SolPartActions.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON3" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON4" Src="~/Admin/Containers/ActionButton.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON5" Src="~/Admin/Containers/ActionButton.ascx" %>
<table class="W100P PL5 PB5" border="0" cellpadding="0" cellspacing="0">
 <tr>
  <td class="W100P">
  <table class="HeadBrdr00 HeadBrdr01" border="0" cellpadding="0" cellspacing="0">
   <tr>
    <td class="HeadCntr00 HeadCntr01">
    <table class="W100P" border="0" cellpadding="0" cellspacing="0">
     <tr>
      <td class="Icon00 Icon01"><dnn:ICON runat="server" id="dnnICON" /></td>
      <td class="Ttle00 ConTtle Ttle01"><dnn:TITLE runat="server" id="dnnTITLE" CssClass="ConTtle" /></td>
      <td class="Imge"><dnn:ACTIONBUTTON1 runat="server" id="dnnACTIONBUTTON1" CommandName="SyndicateModule.Action" DisplayIcon="True" DisplayLink="False" IconFile="Xml.gif" /></td>
      <td class="Imge"><dnn:ACTIONBUTTON2 runat="server" id="dnnACTIONBUTTON2" CommandName="PrintModule.Action" IconFile="Print.gif" DisplayIcon="True" DisplayLink="False" /></td>
      <td class="Imge"><dnn:VISIBILITY runat="server" id="dnnVISIBILITY" BorderWidth="0" MinIcon="Min.gif" MaxIcon="Max.gif" /></td>
     </tr>
    </table>
    </td>
   </tr>
  </table>
  <table class="ContBrdr01" border="0" cellpadding="0" cellspacing="0">
   <tr>
    <td class="Cont00 Cont01" id="ContentPane" runat="server"></td>
   </tr>
  </table>
  <table class="W100P" border="0" cellpadding="0" cellspacing="0">
   <tr>    
    <td class="Nwrp"><dnn:ACTIONS runat="server" id="dnnACTIONS" /></td>
    <td class="Nwrp"><dnn:ACTIONBUTTON3 runat="server" id="dnnACTIONBUTTON3" CommandName="AddContent.Action" DisplayIcon="True" DisplayLink="True" /></td>
    <td class="Nwrp"><dnn:ACTIONBUTTON4 runat="server" id="dnnACTIONBUTTON4" CommandName="ModuleHelp.Action" DisplayIcon="True" DisplayLink="False" /></td>
    <td class="Nwrp W100P">&nbsp;</td>
    <td class="Nwrp HoAlRi"><dnn:ACTIONBUTTON5 runat="server" id="dnnACTIONBUTTON5" CommandName="ModuleSettings.Action" DisplayIcon="True" DisplayLink="False" /></td>
   </tr>
  </table>
  </td>
 </tr>
</table>

If anyone can help me. I'll be love it...


Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
6/6/2006 7:30 AM
 
Looks like maybe the <%= SkinPath %> for VISIBILITY didn't get parsed in the .ascx file.
 
New Post
6/6/2006 9:12 AM
 

Dear Sam

It's very confused.
It works for the Visibility token where the Min.gif and the Max.gif are in the same folder as the Xml.gif and the Print.gif (containers folder)
It doesn't work for the token [ACTIONBUTTON:1] (SyndicateModule.Action)
It doesn't work for the token [ACTIONBUTTON:2] (PrintModule.Action)
The other actions work also but they use the Icon in the Images folder of DNN.


Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
6/6/2006 10:03 AM
 

Sorry, I was confused - thinking you had specific max/min images.

Did you try doing this in the .ascx file?
<dnn:ACTIONBUTTON1 runat="server" id="dnnACTIONBUTTON1" CommandName="SyndicateModule.Action" DisplayIcon="True" DisplayLink="False" IconFile="<%= SkinPath %>Xml.gif" />

 
New Post
6/6/2006 10:19 AM
 
Dear Sam

Yes I have specific max. and min. icons.
No I haven't. I do this immidiately. I let you know...

Vriendelijke groeten
Gilbert Vanden Borre
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error occured by uploading containerError occured by uploading container


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