1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Adding a custom Masterpage

Adding a custom Masterpage

8 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    22 Apr 2010
    Link to this post
    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" "http://www.w3.org/TR/xhtml1/DTD/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
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Apr 2010
    Link to this post
    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

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    24 Apr 2010
    Link to this post
    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?
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    24 Apr 2010
    Link to this post
    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>

    Its trying to find http://local.sitefinity4.com/App_Master/include/css/default.css

    instead of http://local.sitefinity4.com/include/css/default.css
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Apr 2010
    Link to this post
    Hello Steve,

    You could try this one

    <sf:ResourceLinks  ID="resLinks" runat="server" UseEmbeddedThemes="false">
         <sf:ResourceFile Name="include/css/default.css" /> 
    </sf:ResourceLinks>

    but it depends on where you use ResourceLinks  - the file location is important.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Apr 2010
    Link to this post
    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

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    26 Apr 2010
    Link to this post
    Thanks!  You don't have to update my points for a CTP though :)
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 Jan 2011
    Link to this post
    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
8 posts, 0 answered