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 Message - error BC30545Error Message - error BC30545
Previous
 
Next
New Post
1/15/2008 11:13 AM
 

A couple notes:

1) You have what seems to be the "@" calls at the top for an ASCX file, if you're uploading it as HTML this will throw DNN for a loop

2) You may want to opt for CSS files instead of having your styles on the template page itself, just make  SKINNAME.css and put all your rules in there. It will make troubleshooting much less of a headache imo.


Wells Doty Jr
Online Content Development
 
New Post
4/16/2008 2:16 PM
 

I'm getting the error below. I'm making changes to the ASCX skin directly in DNN's directory with VWD 2008 and I notice that in my new skin the first tag <%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb...." has a line under it saying the same thing "Property access must assign to the property or use it's value". In my old skin it's not underlined. Anyone have a clue what I'm doing wrong?

Could Not Load Skin: /Portals/_default/Skins/HollyFactory/Vertical Fixed.ascx Error: C:\inetpub\wwwroot\HollyFactory\Portals\_default\Skins\HollyFactory\Vertical Fixed.ascx(15): error BC30545: Property access must assign to the property or use its value.

Here is my NEW skin code that doesn't work:

<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="radm" TagName="RADMENU" Src="~/DesktopModules/RadMenu/RadMenu.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="ControlPanel" runat="server" class="contentpane" valign="top" align="center" style="width: 683px">
</td>
<td><radm:RADMENU runat="server" id="RadMenu1" Skin="web20" Flow="vertical" EnableScreenBoundaryDetection="True" ClickToOpen="true" PagesToExclude="Arborvitae, Ash (Green), Birch, Crape Myrtle, Holly, Leyland, Maple (Red), Landscape Developers & Contractors, Rewholesalers & Distributors, About Us, Contact Us, Home" EnableUserMenus="true" EnableAdminMenus="true" Width="117" Height="136" style="position: relative; top: 3px; left: -2px;" />
</td>
</tr>
</table>

<div><img src="<% SkinPath %>/images/logo.gif" width="300" alt="" /></div>
<table id="HeaderTable" width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top" nowrap>
        <td width="196" nowrap></td>
        <td width="41" nowrap><img src="<% SkinPath %>/images/trees_02.jpg" width="41" height="47" alt="" /></td>
        <td background="<% SkinPath %>/images/trees_03.jpg" nowrap>&nbsp;</td>
        <td width="244" align="right" nowrap><radm:RADMENU runat="server" id="RadMenu2" Skin="web20" ShowPath="True" SelectedPathHeaderItemCss="focused" SelectedPathItemCss="focused" Flow="horizontal" EnableScreenBoundaryDetection="True" EnableUserMenus="true" EnableAdminMenus="false" PagesToExclude="Admin, Host, Manage Store, Arborvitae, Ash (Green), Birch, Crape Myrtle, Holly, Leyland, Maple (Red), Landscape Developers & Contractors, Rewholesalers & Distributors" Width="" Height="" /></td>
        <td width="47" nowrap><img src="<% SkinPath %>/images/trees_06.jpg" width="47" height="47" alt="" /></td>
        <td width="191" nowrap><img src="<% SkinPath %>/images/trees_07.jpg" width="191" height="47" alt="" /></td>
    </tr>
</table>
<table id="BodyTable" width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr valign="top">
        <td class="leftpane" id="LeftPane" runat="server" width="211" height="100%" background="<% SkinPath %>/images/trees_20.jpg"></td>
        <td background="<% SkinPath %>/images/trees_09.jpg" height="100%">
            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
            <tr><td class="contentpane" id="ContentPane" runat="server" colspan="3" align="center" valign="middle"></td></tr>
            <tr>
                <td width="23" height="26"><img src="<% SkinPath %>/images/trees_25.jpg" width="23" height="26" alt=""></td>
                <td height="26" background="<% SkinPath %>/images/trees_26.jpg">&nbsp;</td>
                   <td width="20" height="26"><img src="<% SkinPath %>/images/trees_28.jpg" width="20" height="26" alt="" /></td></tr>
            </table>
        </td>
        <td width="212" background="<% SkinPath %>/images/trees_19.jpg">
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="212" height="33"><img src="<% SkinPath %>/images/trees_10.jpg" width="212" height="33" alt="" /></td>
            </tr>
            <tr>
                <td class="orderpane" id="OrderPane" runat="server" width="212" height="26" background="<% SkinPath %>/images/trees_12.jpg" align="center"></td>
            </tr>
            <tr>
                <td width="212" height="18"><img src="<% SkinPath %>/images/trees_14.jpg" width="212" height="18" alt="" /></td>
            </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="212" height="12"><img src="<% SkinPath %>/images/trees_16.jpg" width="212" height="12" alt="" /></td>
            </tr>
            <tr>
                <td class="searchpane" id="SearchPane" runat="server" width="212" height="25" background="<% SkinPath %>/images/trees_17.jpg" align="center"></td>
            </tr>
            <tr>
                <td width="212" height="17"><img src="<% SkinPath %>/images/trees_18.jpg" width="212" height="17" alt="" /></td>
            </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="212" height="12"><img src="<% SkinPath %>/images/trees_16.jpg" width="212" height="12" alt="" /></td>
            </tr>
            <tr>
                <td class="loginpane" id="LoginPane" runat="server" width="212" height="25" background="<% SkinPath %>/images/trees_17.jpg" align="center"></td>
            </tr>
            <tr>
                <td width="212" height="17"><img src="<% SkinPath %>/images/trees_18.jpg" width="212" height="17" alt="" /></td>
            </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="212" height="33"><img src="<% SkinPath %>/images/trees_24.jpg" width="212" height="40" alt="" /></td>
            </tr>
            </table>
        </td>
    </tr>
</table>
<br /><br />
<div class="toppane" id="TopPane" runat="server"><dnn:LOGIN runat="server" id="dnnLOGIN" /><dnn:SEARCH runat="server" id="dnnSEARCH" showWeb="false" showSite="false" /></div>
<div class="bottompane" id="BottomPane" runat="server"></div>

 

Here is my OLD skin code that does work:

<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>

<%@ Register TagPrefix="radm" TagName="RADMENU" Src="~/DesktopModules/RadMenu/RadMenu.ascx" %>

<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="ControlPanel" runat="server" class="contentpane" valign="top" align="center" style="width: 683px">
</td>
<td><radm:RADMENU runat="server" id="RadMenu1" Skin="web20" Flow="vertical" EnableScreenBoundaryDetection="True" ClickToOpen="true" PagesToExclude="Arborvitae, Ash (Green), Birch, Crape Myrtle, Holly, Leyland, Maple (Red), Landscape Developers & Contractors, Rewholesalers & Distributors, About Us, Contact Us, Home" EnableUserMenus="true" EnableAdminMenus="true" Width="117" Height="136" style="position: relative; top: 3px; left: -2px;" />
</td>
</tr>
</table>
<TABLE class="skinheader" cellSpacing="0" cellPadding="0" width="800" border="0">
  <TR>
    <TD vAlign="middle" align="left"><dnn:LOGO runat="server" id="dnnLOGO" /></TD>
  </TR>
</TABLE>
<table cellspacing="0" cellpadding="0" width="800" border="0">
  <TR>
    <TD class="toppane" id="TopPane" runat="server" valign="bottom" align="center">
    <radm:RADMENU runat="server" id="RadMenuTop" Skin="web20" ShowPath="True" SelectedPathHeaderItemCss="focused" SelectedPathItemCss="focused" Flow="horizontal" EnableScreenBoundaryDetection="True" EnableUserMenus="true" EnableAdminMenus="false" PagesToExclude="Admin, Host, Manage Store, Arborvitae, Ash (Green), Birch, Crape Myrtle, Holly, Leyland, Maple (Red), Landscape Developers & Contractors, Rewholesalers & Distributors" Width="" Height="" />
    <dnn:SEARCH runat="server" id="dnnSEARCH" showWeb="false" showSite="false" /> <dnn:LOGIN runat="server" id="dnnLOGIN" /></TD>
  </TR>
</table>
<table cellspacing="0" cellpadding="0" width="800" border="0">
  <TR valign="top">
    <TD class="leftpane" id="LeftPane" runat="server" valign="top" align="center">
    <%-- <radm:RADMENU runat="server" id="RadMenuPages" Skin="web20" Flow="vertical" EnableScreenBoundaryDetection="True" EnableUserMenus="true" EnableAdminMenus="false" PagesToExclude="Manage Store, Landscape Developers & Contractors, Rewholesalers & Distributors, Home, Contact Us, About Us" Width="" Height="" /> --%></TD>
    <TD class="contentpane" id="ContentPane" runat="server" valign="top" align="center"></TD>
    <TD class="rightpane" id="RightPane" runat="server" valign="top" align="center"></TD>
  </TR>
  <TR>
    <TD class="bottompane" colspan="3" id="BottomPane" runat="server" valign="top" align="center"></TD>
  </TR>
</table>

 

 
New Post
4/16/2008 2:19 PM
 

Welshgaz, try this... And also put your CSS in your skin.css file in your skin folder.

<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BANNER" Src="~/Admin/Skins/Banner.ascx" %>
<%@ Register TagPrefix="dnn" TagName="MENU" Src="~/Admin/Skins/SolPartMenu.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="dnn" TagName="DOTNETNUKE" Src="~/Admin/Skins/DotNetNuke.ascx" %>

<table width="760" align="center">
  <tr>
    <td height="25" valign="top" id="NAVIGATIONPANE" runat="server"></td>
  </tr>
  <tr>
    <td height="116" colspan="2" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" valign="top"><table width="760">
      <tr>
        <td width="320" height="315" valign="top" id="CONTENTPANE" runat="server"></td>
        <td width="440" height="315" valign="top" id="CONTENTPANEFLASH" runat="server"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" colspan="2" valign="top" id="BREADCRUMBPANE" runat="server"></td>
  </tr>
  <tr>
    <td colspan="2" valign="top"><table width="760">
      <tr>
        <td width="30" rowspan="3" valign="top" background="<% SkinPath %>/images/left1px.jpg">&nbsp;</td>
        <td width="420" rowspan="2" valign="top" id="CONTENTPANE1" runat="server"></td>
        <td width="10" rowspan="2" valign="top"><img src="images/middle1px.jpg" width="10" height="1" /></td>
        <td width="270" valign="top" id="CONTENTPANE2" runat="server">&nbsp;</td>
        <td width="30" rowspan="3" valign="top" background="<%= SkinPath %>/images/right1px.jpg">&nbsp;</td>
      </tr>
      <tr>
        <td width="270" valign="top" id="CONTENTPANE3" runat="server">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" valign="top" id="CONTENTPANE4" runat="server">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="2" valign="top" background="<% SkinPath %>/images/sitenav.jpg"><table width="760">
      <tr>
        <td colspan="2" valign="top"><dnn:MENU runat="server" id="dnnMENU" menualignment="center" separator="|" userootbreadcrumbarrow="false" class="main_menu" /></td>
        </tr>
      <tr>
        <td colspan="2" valign="top"><br /></td>
      </tr>
      <tr>
        <td width="380" valign="top">&nbsp;</td>
        <td width="380" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" valign="top"><br /></td>
      </tr>
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>

 
New Post
4/16/2008 5:23 PM
 

I've made this mistake many a time and I should have it down by now. You have to put  =  in and spaces between skinpath and no / after the code block.

"<%= SkinPath %>images/trees_02.jpg"

 
New Post
9/8/2008 4:46 PM
 

GeoCentric Designs,

Thanks for that.  I was forgetting the = before SkinPath, however I made the adjustments and now I'm seeing this error.  This is a skin I've used on another site so I know it works, I just changed up the images located in the image folder within the skin.

Thoughts?

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.AddAt(Int32 index, 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.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) 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) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Error Message - error BC30545Error Message - error BC30545


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