I've got a feature deploying a module containing a page layout file, which it 'places' in /_catalogs/masterpage/ using GhostableInLibrary. (So it doesn't actually go in the catalog, it stays in the 14 hive.)

This worked fine.

I've since renamed my feature, project etc., and redeployed, so the actual physical file is now in a different place in the 14 hive.

I now get the following when SharePoint tries to read the file:

Relying on fallback logic in VghostPageManager::getGhostDocument() for document:
'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Template

followed by similar lines for the 12 and 60 hives.

Since I've redeployed the feature, I would've expected SharePoint to 'overwrite' the reference in the catalog, but this doesn't seem to have happened.

How can I tell SharePoint to update its reference to this file?

1 Answer 1


You'll need to de-activate the feature, delete the file from the masterpage gallery, then re-activate the feature

  • I've tried this, but I get the error "This item cannot be deleted because it is still referenced by other pages"
    – Rawling
    Jan 16, 2012 at 9:04
  • In that case, you'll also need to work out which pages are referencing the page layout and either delete them first or change the page layout to a different one.
    – Paul Lucas
    Jan 16, 2012 at 23:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.