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:
<
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"> </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"> </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"> </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] [TERMS] [PRIVACY]</td>
</
</tr>table>
<
<
<
<
<
<
<
</
</
</
<
<
<
<
<
<
</
</
</
</
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>
<
<
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> [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] [ACTIONBUTTON:3] [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