Roland Oldengarm - Independent IT Contractor

Living in the coolest little capital Wellington, New Zealand!

Page Layouts in Master Page Gallery not updated after a deployment

The problem: Visual Studio 2010 solution, modules with Page Layouts, etc. Changes in Page Layouts were not updated after deployment. Old version kept on showing up.

Tried the following things:

  • Manually retract, deleted, added and deployed WSP
  • Checked 20 times in 14-hive if version in TEMPLATEFEATURES was the correct one
  • Resetted IE cache settings
  • Deleted web application (including IIS and content database)

Even after deleting whole web application AND deleting WSP, after adding and deployment of the WSP still the old version (of about two hours ago) was showing up as the Page Layout.

Changes in the masterpage (same gallery) were showing up correctly. Tried with other page layouts too (which were not used in pages), still no luck.
After a while I wanted to throw my laptop out of the window, but I did not. Googling brought me to the following page /_layouts/reghost.aspx (Site Settings -> Reset to Site Definition). Very, very strange, because the Page Layouts were not customized /unghosted. And even then, deleting content database will delete all unghosted items I would think, but I am not very sure now anymore….

Edit 03-28-2012

Problem was:

meta:webpartpageexpansion=”full” meta:progid=”SharePoint.WebPartPage.Document”

In Page-Directive… This was added bij SPD.

<%@ Page language=”C#” Inherits=”Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c” meta:webpartpageexpansion=”full” meta:progid=”SharePoint.WebPartPage.Document” %>

1 Comment

  1. Solved my problem, thanks for posting this.

Leave a Reply

Your email address will not be published.

*