Adding a custom Masterpage
Is there some trick to getting a custom masterpage to work?
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of
a resource required to service this request. Please review the
following specific parse error details and modify your source file
appropriately.
Parser Error Message: Could not load type
'SitefinityWebApp.App_Master.Site'.
Source Error:
Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="SitefinityWebApp.App_Master.Site" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/.../xhtml1-transitional.dtd">
Source File: /temp/Site.Master Line: 1
Version Information: Microsoft .NET Framework
Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Hi Steve,
Thank you for using our services.
Since Sitefinity 4.0 is built as a web application rather than a website you should always build the application when you introduce any code changes. In this case since the application is not built it cannot find the class SitefinityWebApp.App_Master.Site, so try building application first.
Greetings,
Radoslav Georgiev
the Telerik team
Ok got it, I hate webapps...I know it's nice to know the thing compiles, but I like the freedom to quickly tweak and add files
Anywho...
Why is it that in my masterpage design mode I don't see the nice bounding boxes around my content placeholders the defaut templates have?
Whats the trick to get the resourcelinks control to work? I assume this is the new version of the Css\JsFileLink?
<
sf:ResourceLinks
ID
=
"resLinks"
runat
=
"server"
UseEmbeddedThemes
=
"false"
>
<
sf:ResourceFile
Name
=
"~/include/css/default.css"
Static
=
"True"
/>
</
sf:ResourceLinks
>
Hello Steve,
You could try this one
<
sf:ResourceLinks
ID
=
"resLinks"
runat
=
"server"
UseEmbeddedThemes
=
"false"
>
<
sf:ResourceFile
Name
=
"include/css/default.css"
/>
</
sf:ResourceLinks
>
ResourceLinks
- the file location is important.Hello Steve,
After some further investigation we found that there is a bug in the control. Your Telerik points have been updated.
Greetings,
Ivan Dimitrov
the Telerik team
Thanks! You don't have to update my points for a CTP though :)
Hi ,
1.Set Static property to true. AssemblyInfo should contain a class from your assembly.
<sitefinity:ResourceLinks ID="ResourceLinks1" runat="server" UseEmbeddedThemes="true">
<sitefinity:ResourceFile Name="Telerik.Sitefinity.Samples.Resources.Layout.css" Static="true" AssemblyInfo="Telerik.Sitefinity.Samples.Reference, Telerik.Sitefinity.Samples" />
</sitefinity:ResourceLinks>
2. Layout.css should be "EmbeddedResource" and it has to be registered inside AssemblyInfo.cs
If 1 and 2 are met the class is add to a page.
Regards,
Ivan Dimitrov
the Telerik team