Hello,
I have just upgraded a site to DNN 7.3.4 / asp.net 4. The skin is now failing to load (it was created a few years a go with artisteer). The error I am getting is 'Could not load skin, The server tag is not well formed'. From searching the internet it looks like this could be due to a syntax error in the .ascx file. I am no coder and have stared at the code for ages and can't spot anything. If anyone has a spare minute or two could they look below and see if they can spot anything or is there someway of finding out what line the error might be on - at the moment I can't get any useful info.
Many thanks for any help
Vicky
<%@ 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="LOGIN" Src="~/Admin/Skins/login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/user.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/breadcrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="ARTMENU" Src="~/DesktopModules/ArtMenuSO/ArtMenuSO.ascx" %>
<%@ Register TagPrefix="dnn" TagName="STYLES" Src="~/Admin/Skins/Styles.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="TEXT" Src="~/admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/admin/Skins/search.ascx" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.Page.ClientScript.RegisterClientScriptInclude("script.js", Me.TemplateSourceDirectory & "/script.js")
End Sub
Private Function CollapseSidebars() As String
Dim sb1 As Control = Me.FindControl("sidebar1")
Dim sb2 As Control = Me.FindControl("sidebar2")
If Not IsNothing(sb1) And Not IsNothing(sb2) Then
If sb1.Controls.Count > 0 And sb2.Controls.Count = 0 Then
Return "-sidebar2"
ElseIf sb1.Controls.Count = 0 And sb2.Controls.Count > 0 Then
Return "-sidebar1"
ElseIf sb1.Controls.Count = 0 And sb2.Controls.Count = 0 Then
Return "-wide"
End If
ElseIf Not IsNothing(sb1) And IsNothing(sb2) Then
If sb1.Controls.Count = 0 Then
Return "-wide"
End If
ElseIf IsNothing(sb2) And Not IsNothing(sb2) Then
If sb2.Controls.Count = 0 Then
Return "-wide"
End If
End If
Return String.Empty
End Function
</script>
<div id="art-main">
<div class="art-sheet">
<div class="art-sheet-tl"></div>
<div class="art-sheet-tr"></div>
<div class="art-sheet-bl"></div>
<div class="art-sheet-br"></div>
<div class="art-sheet-tc"></div>
<div class="art-sheet-bc"></div>
<div class="art-sheet-cl"></div>
<div class="art-sheet-cr"></div>
<div class="art-sheet-cc"></div>
<div class="art-sheet-body">
<div id="ControlPanel" runat="server"></div>
<div class="art-header">
<div class="art-header-jpeg">
<div id="loginlinks">
<dnn:USER runat="server" id="dnnUSER" CssClass="OtherLinks" /> | <dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="OtherLinks" />
<br /><br /><br /><br /><dnn:SEARCH runat="server" id="dnnSEARCH" ShowSite="false" ShowWeb="false" /><br />
</div>
</div>
</div>
<dnn:ARTMENU ID="ArtMenu1" ShowHiddenTabs="False" ShowAdminTabs="True" ShowDeletedTabs="False" ShowLoginTab="False" ShowUserTab="False" runat="server" />
<div id="TopPane" visible="false" runat="server"></div>
<table class="position" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="33%" id="Top1" runat="server"></td>
<td width="33%" id="Top2" runat="server"></td>
<td id="Top3" runat="server"></td>
</tr>
</table><div class="art-content-layout">
<div class="art-content-layout-row">
<div class="art-layout-cell art-content<%= CollapseSidebars() %>">
<div class="art-post">
<div class="art-post-body">
<div class="art-post-inner art-article">
<div class="art-postcontent">
<!-- article-content -->
<dnn:TEXT runat="server" id="dnnTEXT" Text="You are here >" ResourceKey="Breadcrumb" /> <dnn:BREADCRUMB ID="dnnBREADCRUMB" RootLevel="0" Separator=" > " runat="server" />
<!-- /article-content -->
</div>
<div class="cleared"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<div id="Banner1" visible="false" runat="server"></div>
<table class="position" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="50%" id="User1" runat="server"></td>
<td id="User2" runat="server"></td>
</tr>
</table>
<div id="Banner2" visible="false" runat="server"></div>
<div id="ContentPane" runat="server"></div>
<div id="Banner3" visible="false" runat="server"></div>
<table class="position" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="50%" id="User3" runat="server"></td>
<td id="User4" runat="server"></td>
</tr>
</table>
<div id="Banner4" visible="false" runat="server"></div>
</div>
<div class="art-layout-cell art-sidebar1">
<div id="sidebar1" visible="true" runat="server"></div>
</div>
</div>
</div>
<div class="cleared"></div>
<table class="position" align="center" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="2%" > </td>
<td width="24%" id="Bottom1" runat="server"></td>
<td width="24%" id="Bottom2" runat="server"></td>
<td width="24% id="Bottom3" runat="server"></td>
<td width="24% id="Bottom4" runat="server"></td>
<td width="2%" > </td>
</tr>
</table>
<div id="BottomPane" visible="false" runat="server"></div><div class="art-footer">
<div class="art-footer-inner">
<div class="art-footer-text">
<p><dnn:TERMS runat="server" ID="dnnTerms" />
| <dnn:PRIVACY ID="dnnPrivacy" runat="server" /><br />
<dnn:COPYRIGHT runat="server" id="dnnCopyright" /></p>
</div>
</div>
<div class="art-footer-background"></div>
</div>
<div class="cleared"></div>
</div>
</div>
<div class="cleared"></div>
</div>
<dnn:STYLES runat="server" ID="style" Name="style" StyleSheet="style.css" UseSkinPath="true" />
<dnn:STYLES runat="server" ID="styleIE6" Name="styleIE6" Condition="IE 6" StyleSheet="style.ie6.css" UseSkinPath="true" />
<dnn:STYLES runat="server" ID="styleIE7" Name="styleIE7" Condition="IE 7" StyleSheet="style.ie7.css" UseSkinPath="true" />