Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Manual Upgrade 3.2 -> 4.0

$
0
0
I don't know where to see the stack trace, I just get this message on the page

Error: Supplied XDocument must have a root named html belonging to the namespace 'http://www.w3.org/1999/xhtml'
C1 Function: Layout.SyncroSystemOneColumn

The function is like that:

@inherits RazorFunction

@using Composite.Core.Xml;
@functions {
// C1 Function parameters defined below...
[FunctionParameter(Label = "Content", Help = "Content")]
public XhtmlDocument Content { get; set; }
}
@{
Layout = "~/App_Data/Razor/Layout/SyncroSystemMasterLayout.cshtml";
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head> @*you can add template specific head elements here*@</head><body>
<div class="container">
    <div class="col-md-12">
        @Html.Raw(Content.ToString())
    </div>
</div>
</body>
</html>

Bye

Sebastiano

Viewing all articles
Browse latest Browse all 2540

Trending Articles