Need job

Looking for job in Europe. Please contact thru LinkedIn profile.

Saturday, January 12, 2013

Masterpage location error while creating site from site template


Failed to instantiate file "default.master" from module
"DefaultMasterPage"

I found one possible reason for the error.
File "webtemp_SiteDefinition1.xml" contains something like that:

<?xml version="1.0" encoding="utf-8"?>
<Templates xmlns:ows="Microsoft SharePoint">
  <Template Name="ArchiveSiteDefinition"
            ID="10001">
    <Configuration ID="0"
                   Title="Archive Template Configuration Title"
                   Hidden="FALSE"
                   ImageUrl="/_layouts/images/CPVW.gif"
                   Description="Archive Template Configuration Description"
                   DisplayCategory="Content">
    </Configuration>
  </Template>
</Templates>

Bold text above can't contains white spaces, and maybe other symbols which nonalphanumeric.

Will work - "ArchiveSiteDefinition"
Will not work - "Archive SiteDefinition"

File "webtemp_SiteDefinition1.xml" must be located in folder with name ArchiveSiteDefinition in your studio project.