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

Forums / Developing with Sitefinity / Problem Updating Master Pages

Problem Updating Master Pages

11 posts, 0 answered
  1. Simon Begg
    Simon Begg avatar
    7 posts
    Registered:
    02 Feb 2010
    23 Mar 2010
    Link to this post
    Hi,
    I have created master pages in visual studio which I upload and use within sitefinity with no problem.
    However when I edit the master page in VS the changes are not reflected within SF. These are simple html changes, nothing to do with content place holders. 
    I have to create a new master page whenever I edit the existing one and then reapply the template in SF to all the pages that use it.
    I've seen an old thread about this but there doesn't seem to be an answer except that editing master pages should be possible. 

    Kind Regards

    Simon
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    23 Mar 2010
    Link to this post
    editing master pages in visual studio, then uploading them overwriting the existing files in the App_Master folder SHOULD indeed work, I do it all the time. can you tell me the exact steps you take whenever you make changes?

    one thing you might try is restarting the application by saving your web.config file, this causes asp.net to recompile the site. this should NOT be necessary, but it might help you find the problem.

    what version of sitefinity are you using?
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Mar 2010
    Link to this post
    Hello,

    After editing the master pages could you try to make a dummy edit to the website's web.config and see what the result would be. Also please try to clear the browser cache before you try to view the changed master pages, as cache can also be a problem.

    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. Simon Begg
    Simon Begg avatar
    7 posts
    Registered:
    02 Feb 2010
    23 Mar 2010
    Link to this post
    Hi,
    I'm using SF version 3.7.
    I've tried recompiling the site to no effect also restarting IIS, again no effect.
    I have master pages in the app_master folder which are being used as templates within sitefinity. Everything works fine when I upload a new master page and set a page to use it....pages display correctly, content place holders are fine etc.
    If I then make a change to some html in the master page in VS2008 and save the file this has no effect on the template within SF. Of course if I use this master page in a regular aspx page within VS everything is fine, and the changes take effect.
    The only way I can get the changes to take effect is to upload a new master page and then set all my pages to use that template, which for a large site is obviously not an option in the long term.

    Simon.
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    23 Mar 2010
    Link to this post
    Hello Simon Begg,

    When you edit the master page in the VS, which copy of the page you edit, the one which is on the published website or the one which is on your local pc? Normally if you work with publishing a website to IIS you should edit the file which the website uses not its local version. Also when you publish a website through VS to localhost or a remote server a new directory containing the files published will be created and the website created in IIS will point to the new directory. Another consideration is to check the Allow the website to be updatable checkbox before you publish it.

    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.
  6. Simon Begg
    Simon Begg avatar
    7 posts
    Registered:
    02 Feb 2010
    23 Mar 2010
    Link to this post
    Thanks for your replies.
    I'm currently working solely on my local machine. So I make changes to the master page in visual studio and save it.
    Sitefinity and the site I'm working on exist on my local machine...I'm not working with IIS just the VS web server.
    The master pages that sitefinity reference are in the app_master folder.
    I've tried editing and saving the web.config file and clearing the cache, neither of which have had any result.

    Thanks.
  7. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    23 Mar 2010
    Link to this post
    if you are using IE, try going into Internet Options -> Browsing History -> Settings and check the option for "Every time I visit the webpage"

    it could be your browser that's caching the changes...
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Mar 2010
    Link to this post
    Hello Simon,

    I am not able to reproduce similar problems. Event the application restart is not required. You can take a look at the attached video. I am editing a master page in VS and the changes reflects directly in the CMS.

    Best wishes,
    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.
  9. Mark
    Mark avatar
    1 posts
    Registered:
    19 Nov 2008
    04 Aug 2010
    Link to this post
    I am having the same issue.  I am working on a local SiteFinity install.  As per the documentation instructions, if I try and create a master page template in VS 2008, restart IIS, the template isn't appearing in the SiteFinity admin console.  I have to log into SiteFinity and manually add the template. 

    Also, when I make changes to the local master page files, and save them, my changes are not visible.  I have to log into SiteFinity and manually update the template.

    I have tried on FireFox and IE, tried clearing my cache, and tried restarting IIS several times. 

    Any ideas?
  10. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    05 Aug 2010
    Link to this post
    Hello Mark,

    Thank you for joining the conversation.

    Could you please specify which version of Sitefinity are you using? You can check this article which explains how to find the exact version number of Sitefinity. If master pages are added in ~/App_Master folder of your website they are automatically added as templates. We cannot reproduce this behavior on the latest official release of Sitefinity 3.x.

    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
  11. Pam
    Pam avatar
    11 posts
    Registered:
    24 Nov 2009
    05 Aug 2010
    Link to this post
    Hello everyone,

     I seem to have the seem setup as Simon but without the problems. I have everything on my local. I make any change in VS and it automatically updates my Site. All I have to do is "do a browser refresh" and the changes are there. I am running Sitefinity Version 3.7 SP3. I also have an older version of Sitefinity 3.7 SP2 which is ran on a dev server using IIS and I tried to recreate Simon's problem but it worked fine. Opened up VS, went to my dev server opened up my Sitefinity files, made my changes. Then just did a browser refresh and the changes are there. I would love to find out what is causing this issue. Good Luck!

    Thanks, Darren

    PS. as Josh (SelArom) states try to rebuild your website after your changes. Refresh your browser. 
Register for webinar
11 posts, 0 answered