Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Our Masterpage got corrupted and there is no local backup. Where is it located? If is in file share like 14 hive then I can get a copy from system admin from last night backup? Or if is in the sql backend then I can get the dba to send me the aspx file.

I looked at here but dont see the custom masterpage that portal site is uses. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS

share|improve this question

4 Answers 4

up vote 0 down vote accepted

Which master page?

v4, default and minimal are taken from the _layouts virtual directory (\14\TEMPLATE\LAYOUTS) You should have identical copies in \14\TEMPLATE\GLOBAL

Custom master pages are in your feature's folder, or in the DB once provisioned and customized through SharePoint Designer.

share|improve this answer
    
Great. Thanks for clearing it up. –  M. Todd Jan 25 '12 at 21:03

Your 14 Hive should not be a file share, ever!

If you mean file system rather than a share, then ok :)

Yes, it's stored in 14\Template\Global (I think, look for a Global folder), or in 14\Template\Layouts.

It's recommended though to try to restore the file to the site definition, but using the link in Site Settings, and pasting in the URL to the masterpage file in the Master Page Gallery.

share|improve this answer
    
I dont see the custom masterpages thou? –  M. Todd Jan 25 '12 at 19:48
    
Oh is it customised? Then it will be versioned. Can you recovery from the version history? –  James Love Jan 25 '12 at 19:50

Masterpages are typically version controlled within the site collection. If you go to the affected site and go to Site Actions, Site Settings and look in the Master Page Gallery, you should be able to find your masterpage and roll it back to a working version.

share|improve this answer
    
Will try it. Good suggestion. –  M. Todd Jan 25 '12 at 21:02

If the masterpage was deployed via a solution package (WSP) then you should find the original ASPX file under the folder for the associated Feature (i.e. \14\TEMPLATE\FEATURES).

share|improve this answer
    
good thought. It was created with sp designer. –  M. Todd Jan 25 '12 at 21:02

Your Answer

 
discard

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.