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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin breaks my siteSkin breaks my site
Previous
 
Next
New Post
5/16/2007 11:24 AM
 

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>

 
New Post
5/16/2007 1:46 PM
 

DotNetNuke Modules from Snapsis.com
 
New Post
5/16/2007 1:52 PM
 
I don't know much about skinning, but you can read on the bottom of page 12 in the DNN skinning document, that;
"At a bare minimum you must have at least one content pane and it must be appropriately named "ContentPane"".
I can't see any cell with ID="contentpane" in your skin. Can this be the reason to your problems?

Lars
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin breaks my siteSkin breaks my site


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