SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem where I delete an older version of a page layout but it keeps coming back and the changes I made to that page layout do not take effect. I would like to know if there is a way to make SharePoint 2010 always overwrite all files when doing a deployment to a server.

share|improve this question
Sorry don't know how to commit here. What does not update visual of page or it's functionality? – Vadim Sep 9 '11 at 5:51
Both visual and functional. When i check the code using Designer, it remains the same. – bhavinp Sep 11 '11 at 20:03

Typically that kind of problem is caused by a customized page layout. With customized I mean that the page layout was modified after deployment (e.g. with SharePoint designer) and is stored in the content database. If so, you have to uncustomize the page before it can be updated via a WSP solution. You can use the re-ghost tool for that:

Files can also be customized by SharePoint (without a user modifying it) if the mark-up code (ASPX page) has errors.

share|improve this answer
Is there a more manual and easier way to accomplish this. That tutorial seems like a very long process to create the command. Are there any features in Visual Studio 2010 or Sharepoint Designer that will allow me to overwrite the files in sharepoint. – bhavinp Sep 12 '11 at 7:01
SharePoint Designer can show and revert customized pages in theory. I have not seen this working correctly. Go to Page Layouts in SharePoint designer, right click the file and click Revert to Site Definition (or similar). The mentioned re-ghost tool works for sure. – Bernd Rickenberg Sep 13 '11 at 7:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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