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, ...The server block is not well formedThe server block is not well formed
Previous
 
Next
New Post
5/22/2012 10:24 PM
 

Hi,

I created a new skin package and installed it into one our sites.  I created a new page to test the skin and receive the error per above.  Pasted below is the stack trace: DotNetNuke.Services.Exceptions.PageLoadException: Unhandled error loading page. ---> System.Web.HttpParseException: The server block is not well formed. ---> System.Web.HttpException: The server block is not well formed. at System.Web.UI.TemplateParser.ProcessError(String message) at System.Web.UI.TemplateParser.DetectSpecialServerTagError(String text, Int32 textPos) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Skins.Skin.LoadSkin(PageBase page, String skinPath) --- End of inner exception stack trace ---

I'm using a fairly simple ASCX file which is pasted below:

<%@ Control Language="VB" AutoEventWireup="false" Explicit="true" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagName="MENU" TagPrefix="ddr" Src="~/DesktopModules/DDRMenu/Menu.ascx"%>
<%@ Register TagPrefix="ddr" Namespace="DotNetNuke.Web.DDRMenu.TemplateEngine" Assembly="DotNetNuke.Web.DDRMenu" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.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="CONTROLPANEL" Src="~/Admin/Skins/controlpanel.ascx %>

<dnn:CONTROLPANEL runat="server" id="cp" IsDockable="false" />
<div runat="server" id="nav">
    <ddr:MENU MenuStyle="Superfish" runat="server" />
    <dnn:LOGIN id="dnnLogin" runat="server" />
</div>
<div runat="server" id="RotatorPane">
</div>
<div runat="server" id="ContentPane">
</div>
<div runat="server" id="footer">
    <div id="lowerleftandmiddle">
    <div id="footerleftpane">
        <dnn:LOGO id="dnnLogo" runat="server" />
        <h3>Driving business performance.</h3>
        <h3>Practical Sales and Operations Planning</h3>
        <h3>for medium sized businesses.</h3>
    </div>
    <div id="footerMidPane">
       <div id="midfooter" runat="server">
       </div>
    </div>
    </div>
    <div id="footerRightPane">
        <dnn:COPYRIGHT id="dnnCopyright" runat="server" /><br />
        <dnn:PRIVACY id="dnnPrivacy" runat="server" />
        <dnn:TERMS id="dnnTerms" runat="server" />
        <br class="clear" />
    </div>

What should I change in order to resolve this error?

Thanks,

Sid

 
New Post
5/23/2012 3:22 AM
 

Any div with runat=server is seen as a Pane in DNN.

A Pane cannot have any asp.net controls in it or you get this error.
 I think in this case the error is caused by:

<div runat="server" id="footer">

Which has other elements in it with runat="server"

Change it to <div  id="footer">

 
New Post
5/23/2012 4:17 AM
 
The quotes are not balanced in the controlpanel tag.

I think some tags have no matching end tag.

When you have this kind of problem, keep taking stuff out until it 'works'. The last bit you removed has a problem. It's a technique that helps yo uhome in on the problem.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
5/23/2012 9:58 PM
 

Thanks for catching this.  I've revised both ASCX files per below:

<%@ Control Language="VB" AutoEventWireup="false" Explicit="true" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagName="MENU" TagPrefix="ddr" Src="~/DesktopModules/DDRMenu/Menu.ascx"%>
<%@ Register TagPrefix="ddr" Namespace="DotNetNuke.Web.DDRMenu.TemplateEngine" Assembly="DotNetNuke.Web.DDRMenu" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.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="CONTROLPANEL" Src="~/Admin/Skins/controlpanel.ascx" %>

<dnn:CONTROLPANEL runat="server" id="cp" IsDockable="false" />
<div runat="server" id="nav">
    <ddr:MENU MenuStyle="Superfish" runat="server" />
    <dnn:LOGIN id="dnnLogin" runat="server" />
</div>
<div runat="server" id="RotatorPane">
</div>
<div runat="server" id="ContentPane">
</div>
<div id="footer">
    <div id="lowerleftandmiddle">
    <div id="footerleftpane">
        <dnn:LOGO id="dnnLogo" runat="server" />
        <h3>Driving business performance.</h3>
        <h3>Practical Sales and Operations Planning</h3>
        <h3>for medium sized businesses.</h3>
    </div>
    <div id="footerMidPane">
       <div id="midfooter" runat="server">
       </div>
    </div>
    </div>
    <div id="footerRightPane">
        <dnn:COPYRIGHT id="dnnCopyright" runat="server" /><br />
        <dnn:PRIVACY id="dnnPrivacy" runat="server" />
        <dnn:TERMS id="dnnTerms" runat="server" />
        <br class="clear" />
    </div>Do
</div> 

 Do I need to insert runat="server on the footerRightPanel, footerMidPanel and footerleftpanel DIVs since these will essentially be panes that will hold modules?

Thanks,

Sid

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...The server block is not well formedThe server block is not well formed


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