Hi,
My coworker and I tried to upload a skin onto a site and unfortunately when we do we get the following error in the browser:
--------------------------------------------------------------------------
Server Error in '/DNNDev' Application.
The resource cannot be found.
escription: HTTP 404.
The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /DNNDev/Default.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
--------------------------------------------------------------------
I tried using VS and the following exception was caught in Default.aspx.vb, on line 552 -> SkinPlaceHolder.Controls.Add(ctlSkin):
System.Web.HttpException was unhandled by user code
ErrorCode=-2147467259
Message="The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."
Source="System.Web"
StackTrace:
at System.Web.UI.ControlCollection.Add(Control child)
at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e)
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) in C:\Projects\DNNDev\Default.aspx.vb:line 552
at System.Web.UI.Control.OnInit(EventArgs e)
at System.Web.UI.Page.OnInit(EventArgs e)
at DotNetNuke.Framework.PageBase.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I'm not experienced at all with skinning and I didn't actually create the skin so I'm not sure what might be wrong. For reference here is a section of the skin's html, if any other components would help troubleshoot this please tell me.
<table class="pagemaster" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><table width="970" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" bgcolor="#004587"><table width="970" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="9" valign="bottom" bgcolor="#002B5B"><img src="gradient_side.jpg" width="9" height="133"></td>
<td width="952" valign="top"><table width="952" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><table width="952" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="#000000"><img src="spacer.gif" width="1" height="8"></td>
<td width="950" valign="top"><table width="950" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="top.jpg" width="950" height="108"></td>
</tr>
<tr>
<td><table width="950" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="170" rowspan="3" class="menupane">[SOLPARTMENU]</td>
<td width="780" height="30" valign="top" background="bg_date.jpg"><table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="copyright">[CURRENTDATE]</td>
<td align="right" class="subcopyright">[SEARCH]</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF"><img src="spacer.gif" width="780" height="2"></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" ID="BannerPane" RUNAT="server"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="insideWhitebg" ID="WhitecontentPane" RUNAT="server"></td>
</tr>
<tr>
<td align="center" class="splashGreybg" ID="GreycontentPane" RUNAT="server"></td>
</tr>
</table></td>
<td width="1" bgcolor="#000000"><img src="spacer.gif" width="1" height="1"></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" bgcolor="#000000"><img src="spacer.gif" width="952" height="1"></td>
</tr>
<tr>
<td class="copyright">[COPYRIGHT]</td>
<td align="right" class="subcopyright">[LOGIN]</td>
</tr>
</table></td>
<td width="9" valign="bottom" bgcolor="#002B5B"><img src="gradient_side.jpg" width="9" height="133"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>