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, ...Portal died after applying a custom skinPortal died after applying a custom skin
Previous
 
Next
New Post
9/7/2008 9:44 PM
 

Hello...

After reading a PDF guide for creating skins, I created my own skin in HTML. After applying it to the site, the following error was shown:

An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. ). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. ). at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e) in E:\Visual Studio 2005\Projects\Desytec\Library\Components\Skins\Skin.vb:line 943 at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) in E:\Visual Studio 2005\Projects\Desytec\Library\Components\Framework\PageBase.vb:line 265 at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

And I cannot access the site anymore... neither the user site nor the administration site.

The skin is very simple, so I placed here the correspoding files so that you can view where the error is:

  • HTML Skin file:

<

table width="778" border="0" cellspacing="0" cellpadding="0">

 

 

<tr style="height: 184px"> <td background="images/11_01.jpg" style="text-align: right">[LOGO]</td>

 

</

<

</tr>table>table width="778" border="0" cellspacing="0" cellpadding="0">

 

 

<tr> <td width="21" background="images/11_19.gif">&nbsp;</td>

 

 

<td width="241" valign="top" background="images/11_20.gif" align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0">

 

 

<tr> <td><img src="images/11_03.jpg" width=241 height=155 alt=""></td>

 

</tr>

 

</table>

[CONTENTPANE:1]

 

</td>

 

<td width="21" background="images/11_19.gif">&nbsp;</td>

 

<td valign="top" bgcolor="#FFFFFF" align="center">

 

<table width="102%" border="0" cellspacing="0" cellpadding="0" background="images/11_10.gif">

 

 

<tr> <td width="120"><img src="images/11_05.gif" width=120 height=32 alt=""></td>

 

<td width="85"><img src="images/11_06.gif" width=85 height=32 alt=""></td>

 

<td width="87"><img src="images/11_07.gif" width=87 height=32 alt=""></td>

 

<td width="83"><img src="images/11_08.gif" width=83 height=32 alt=""></td>

 

<td width="112"><img src="images/11_09.gif" width=95 height=32 alt=""></td>

 

<td width="16">&nbsp;</td>

 

</tr>

 

</table>

 

<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">

 

 

<tr> <td></td>

 

</tr>

 

</table>

[CONTENTPANE]

 

</td>

 

</

<

</tr>table>table width="778" border="0" cellspacing="0" cellpadding="0">

 

<tr style="height: 57px">

 

<td background="images/11_46.gif" style="text-align: right">[COPYRIGHT]&nbsp;&nbsp;[TERMS]&nbsp;&nbsp;[PRIVACY]</td>

 

</

</tr>table>
  • Skin XML file

<

<

<

<

<

<

<

</

</

</

<

<

<

<

<

<

</

</

</

</

Objects>Object>Token>[CONTENTPANE:1]</Token>Settings>Setting>Name>ID</Name>Value>LeftPane</Value>Setting>Settings>Object>Object>Token>[CONTENTPANE]</Token>Settings>Setting>Name>ID</Name>Value>MainPane</Value>Setting>Settings>Object> Objects>
  • Container HTML

<

<

TABLE cellSpacing="0" cellPadding="5" align="center" border="0">TR>

 

<TD>

 

<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">

 

<TR>

 

<TD valign="middle" nowrap>[ACTIONS]</TD>

 

<TD valign="middle" nowrap>[ICON]</TD>

 

<TD valign="middle" width="100%" nowrap>&nbsp;[TITLE]</TD>

 

<TD valign="middle" nowrap>[ACTIONBUTTON:5]</TD>

 

</TR>

 

</TABLE>

 

<HR>

 

</

<

</TD>TR>TR>

 

</

<

<TD runat="server" align="center">[CONTENTPANE]</TD>TR>TR>

 

<TD class="containerrow2_gray">

 

<HR class="containermaster_gray">

 

<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">

 

<TR>

 

<TD align="left" valign="middle" nowrap>[ACTIONBUTTON:1]</TD>

 

<TD align="right" valign="middle" nowrap>[ACTIONBUTTON:2]&nbsp;[ACTIONBUTTON:3]&nbsp;[ACTIONBUTTON:4]</TD>

 

</TR>

 

</TABLE>

 

</

</

<

</TD>TR>TABLE>img src="spacer.gif" height="10" width="150" border="0">

 

Any help to correct this skin or to recover the default one, will be greatly appreciated

Thanks

Jaime

 
New Post
9/8/2008 3:53 AM
 

You seem to have two [contentpanes].

Salar

 
New Post
9/8/2008 9:20 PM
 

I did that way because I saw it in an example. I solved the problem by using an ASCX file instead.

Thanks

Jaime

 
New Post
9/9/2008 5:18 AM
 

You can use 2 "contentpanes" in an HTML skin, if you have the right stuff in your XML file.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Portal died after applying a custom skinPortal died after applying a custom skin


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