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

Forums / Developing with Sitefinity / Missing masterpage for temlplates after deployment

Missing masterpage for temlplates after deployment

7 posts, 1 answered
  1. Chris
    Chris avatar
    87 posts
    Registered:
    11 May 2010
    09 Aug 2010
    Link to this post
    I have deployed my Site Finity code and database to a new server and it's not picking up my templates correctly.

    Under templates it is showing some of my custom templates as having a missing master page, and under files they are not displaying in App_Master - however they are present on the server. The Default template is also missing completely. The date modified values of the files are also not correct so for some reason Site Finity is not picking up my changes and new templates.

    I have tried:

    - Restarting IIS
    - Recycling the IIS application pool
    - Restarting the application by modifying web.config
    - Uploading the missing master page files in Site Finity to App_Master

    None of these seem to work. I don't know if there is some data missing from the database somewhere which is required to create a template from a master page?
  2. Chris
    Chris avatar
    87 posts
    Registered:
    11 May 2010
    09 Aug 2010
    Link to this post
    Update...

    One of my templates which shows a red cross under Pages -> Templates gives the following error when I try to view it...

    Parser Error Message: Could not load type 'SnowValley.Cms.SiteFinity.Site.App_Master.HomePage'.
     
    Source Error:
     
     
    Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="HomePage.master.cs" Inherits="SnowValley.Cms.SiteFinity.Site.App_Master.HomePage" %>
    Line 2: 
    Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    I have since removed the CodeBehind and Inherits attributes, and restarted the application, but still see this error.

  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Aug 2010
    Link to this post
    Hello Chris,

    Can you try using CodeFile instead of CodeBehind. CodeBehind requires that the file is built into an assembly - it is not compiled at runtime.

    Kind regards,
    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
  4. Chris
    Chris avatar
    87 posts
    Registered:
    11 May 2010
    09 Aug 2010
    Link to this post
    My code is compiled as I converted Site Finity from a web site to a compiled web application, however I have changed the master page to not have CodeBehind and it still gives the same error. It seems like the master page has been cached somewhere with the CodeBehind and Inherits attributes and is not recognising that they've changed.


  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Aug 2010
    Link to this post
    Hi Chris,

    If the website has been converted to web application for every change you make you need to rebuild the project - this includes changing markup too. Did you rebuild the website?

    Best wishes,
    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
    Answered
  6. Chris
    Chris avatar
    87 posts
    Registered:
    11 May 2010
    09 Aug 2010
    Link to this post
    Yes, I have used Visual Studio to publish the site to the server where Site Finity was previously deployed and working. It builds as part of that process.

    It is working correctly in IIS on my local machine, it just seems to not be updating correctly on the remote server.
  7. Chris
    Chris avatar
    87 posts
    Registered:
    11 May 2010
    09 Aug 2010
    Link to this post
    Sorry I just found that this is totally my fault. My website in IIS is pointing to the wrong location.

    Thanks for attempting to help though.

    Chris.
Register for webinar
7 posts, 1 answered