Ive created a site definition and am trying to reference a custom master page that is installed as a feature. For some reason when i create a site using the site definition i get a filenotfound exception. My onet.xml is below and so is the error
<?xml version="1.0" encoding="utf-8"?>
<Project Title="RambollUK.Intranet.SP.DisciplineSiteDefinition" Revision="2" ListDir="" xmlns:ows="Microsoft SharePoint" xmlns="http://schemas.microsoft.com/sharepoint/">
<NavBars>
</NavBars>
<Configurations>
<Configuration ID="0" Name="RambollUK.Intranet.SP.DisciplineSiteDefinition" Title="Disciplines Site" MasterUrl="_catalogs/MasterPage/MasterPagesModule/RambollDiscipline.master" CustomMasterUrl="/_catalogs/MasterPage/MasterPagesModule/RambollDiscipline.master">
<Lists>
<!-- Create instances of lists -->
<List FeatureId="54c38541-0617-4148-8cbc-7ae319ff9cdf"
Type="10050"
Title="TopMetroLinks"
Description="Top metro links"
Url="$Resources:core,lists_Folder;/TopMetroLinks"
EnableContentTypes="TRUE">
<Data>
<Rows>
<Row>
<Field Name="Title"><![CDATA[Best Practice]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[1]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Libraries]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[2]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Innovation]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[3]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Feedback]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[4]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Networks]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[5]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Digital Design]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[6]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Sustainability]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[7]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Training]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[8]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
</Rows>
</Data>
</List>
<List FeatureId="b89f34de-19b6-491d-848c-293debf80252" Title="TeamMembers" Type="15002" Description="Team Members" Url="$Resources:core,lists_Folder;/TeamMembers" EnableContentTypes="TRUE">
</List>
<List FeatureId="54c38541-0617-4148-8cbc-7ae319ff9cdf"
Type="10050" Title="BottomMetroLinks"
Description="Bottom metro links"
Url="$Resources:core,lists_Folder;/BottomMetroLinks">
<Data>
<Rows>
<Row>
<Field Name="Title"><![CDATA[Business Plan]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[1]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Team Reporting]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[2]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Team Activities]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[3]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
<Row>
<Field Name="Title"><![CDATA[Business Development]]></Field>
<Field Name="LinkBackgroundColour"><![CDATA[Cyan, #009ee3]]></Field>
<Field Name="LinkColumnStretch"><![CDATA[1]]></Field>
<Field Name="LinkURL"><![CDATA[http://]]></Field>
<Field Name="LinkSortOrder"><![CDATA[4]]></Field>
<Field Name="FontColour"><![CDATA[White]]></Field>
</Row>
</Rows>
</Data>
</List>
</Lists>
<SiteFeatures>
<!-- Enable publishing infrastructure for site collection -->
<Feature ID="F6924D36-2FA8-4f0b-B16D-06B7250180FA"/>
<!-- Enable features for web site -->
<Feature ID="54c38541-0617-4148-8cbc-7ae319ff9cdf"/>
<Feature ID="b89f34de-19b6-491d-848c-293debf80252"/>
<!-- Metro Links list definition -->
<Feature ID="54c38541-0617-4148-8cbc-7ae319ff9cdf"/>
<!-- Team Members list definition-->
<Feature ID="b89f34de-19b6-491d-848c-293debf80252"/>
</SiteFeatures>
<WebFeatures>
<!-- custom master page -->
<Feature ID="b97f59fd-060f-47c0-9a39-583bd707555e"></Feature>
<!-- blog -->
<Feature ID="102e7391-2787-4291-a962-83b279680549"></Feature>
</WebFeatures>
<Modules>
<Module Name="DefaultBlank" />
</Modules>
</Configuration>
</Configurations>
<Modules>
<Module Name="DefaultBlank" Url="" Path="">
<File Url="default.aspx">
<!-- add web parts to web default.aspx -->
<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="0">
<![CDATA[<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="RambollUK.Intranet.SP.MetroLinksViewer.Viewer.Viewer, RambollUK.Intranet.SP.MetroLinksViewer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd9c471ba0d5531e"></type>
<importErrorMessage>Cannot import webpartname Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">Metro link viewer</property>
<property name="Description" type="string">Displays a compatible list in a metro style</property>
<property name="AllowMinimize" type="bool">true</property>
<property name="AllowRemove" type="bool">true</property>
<property name="IsVisible" type="bool">true</property>
<property name="ListName" type="string">TopMetroLinks</property>
<property name="TileSize" type="integer">200</property>
</properties>
</data>
</webPart>
</webParts>]]>
</AllUsersWebPart>
<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">
<![CDATA[<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="RambollUK.Intranet.SP.TeamSlider.Viewer.Viewer, RambollUK.Intranet.SP.TeamSlider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b77c3a5648268c95"></type>
<importErrorMessage>Cannot import webpartname Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">Ramboll Team Slider</property>
<property name="Description" type="string">Slider web part</property>
<property name="AllowMinimize" type="bool">true</property>
<property name="AllowRemove" type="bool">true</property>
<property name="IsVisible" type="bool">true</property>
<property name="ListName" type="string">TeamMembers</property>
</properties>
</data>
</webPart>
</webParts>]]>
</AllUsersWebPart>
<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="2">
<![CDATA[<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="RambollUK.Intranet.SP.MetroLinksViewer.Viewer.Viewer, RambollUK.Intranet.SP.MetroLinksViewer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd9c471ba0d5531e"></type>
<importErrorMessage>Cannot import webpartname Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">Metro link viewer</property>
<property name="Description" type="string">Displays a compatible list in a metro style</property>
<property name="AllowMinimize" type="bool">true</property>
<property name="AllowRemove" type="bool">true</property>
<property name="IsVisible" type="bool">true</property>
<property name="ListName" type="string">BottomMetroLinks</property>
<property name="TileSize" type="integer">200</property>
</properties>
</data>
</webPart>
</webParts>]]>
</AllUsersWebPart>
<AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1">
<![CDATA[<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="GroupBy" type="string" />
<property name="FilterValue2" type="string" />
<property name="BaseType" type="string" />
<property name="AllowConnect" type="bool">True</property>
<property name="ShowUntargetedItems" type="bool">False</property>
<property name="DisplayName" type="string" />
<property name="Title" type="string">Content Query</property>
<property name="ContentTypeName" type="string" />
<property name="ViewFlag" type="string">0</property>
<property name="MediaPlayerStyleSource" type="string" null="true" />
<property name="AdditionalGroupAndSortFields" type="string" />
<property name="GroupByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Desc</property>
<property name="GroupByFieldType" type="string" />
<property name="FilterOperator1" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="FeedTitle" type="string" />
<property name="FilterOperator3" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="SortByDirection" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+SortDirection, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Desc</property>
<property name="FilterDisplayValue3" type="string" />
<property name="FilterDisplayValue2" type="string" />
<property name="FilterDisplayValue1" type="string" />
<property name="FilterValue3" type="string" />
<property name="DataMappings" type="string">Description:|Body:{7662cd2c-f069-4dba-9e35-082cf976e170},Body,Note;|CreatedBy:{1df5e554-ec7e-46a6-901d-d85a3881cb18},Author,User;|Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|PublishedDate:{b1b53d80-23d6-e31b-b235-3a286b9f10ea},PublishedDate,DateTime;|ImageUrl:|LinkUrl:|</property>
<property name="ListGuid" type="string" />
<property name="ListUrl" type="string" null="true" />
<property name="FilterValue1" type="string" />
<property name="CacheXslStorage" type="bool">True</property>
<property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
<property name="ItemLimit" type="int">8</property>
<property name="DataMappingViewFields" type="string">{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Text;{1df5e554-ec7e-46a6-901d-d85a3881cb18},User;{b1b53d80-23d6-e31b-b235-3a286b9f10ea},DateTime;{7662cd2c-f069-4dba-9e35-082cf976e170},Note;</property>
<property name="XslLink" type="string" null="true" />
<property name="EnableOriginalValue" type="bool">False</property>
<property name="AllowMinimize" type="bool">True</property>
<property name="ContentTypeBeginsWithId" type="string" />
<property name="ListDisplayName" type="string" null="true" />
<property name="ListsOverride" type="string" />
<property name="ItemXslLink" type="string" />
<property name="Height" type="string" />
<property name="SortBy" type="string">Created</property>
<property name="CatalogIconImageUrl" type="string" />
<property name="Default" type="string" />
<property name="FilterType1" type="string" />
<property name="FireInitialRow" type="bool">True</property>
<property name="AsyncRefresh" type="bool">False</property>
<property name="ItemStyle" type="string">BlogPost</property>
<property name="AdditionalFilterFields" type="string" />
<property name="WebUrl" type="string">~site/TeamNews</property>
<property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
<property name="Width" type="string" />
<property name="DataSourceID" type="string" />
<property name="HelpUrl" type="string" />
<property name="ManualRefresh" type="bool">False</property>
<property name="PlayMediaInBrowser" type="bool">True</property>
<property name="QueryOverride" type="string" />
<property name="CacheXslTimeOut" type="int">86400</property>
<property name="PageSize" type="int">-1</property>
<property name="UseSQLDataSourcePaging" type="bool">True</property>
<property name="FeedEnabled" type="bool">False</property>
<property name="CommonViewFields" type="string" />
<property name="FilterField3" type="string" />
<property name="Hidden" type="bool">False</property>
<property name="MainXslLink" type="string" />
<property name="ExportMode" type="exportmode">All</property>
<property name="FilterType3" type="string" />
<property name="FilterType2" type="string" />
<property name="ViewFieldsOverride" type="string" />
<property name="DisplayColumns" type="int">1</property>
<property name="FilterIncludeChildren2" type="bool">False</property>
<property name="ParameterBindings" type="string" null="true" />
<property name="FilterByAudience" type="bool">False</property>
<property name="DataSourcesString" type="string" />
<property name="AllowHide" type="bool">True</property>
<property name="Filter2ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Or</property>
<property name="ListId" type="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
<property name="XmlDefinitionLink" type="string" />
<property name="DataFields" type="string" />
<property name="FilterIncludeChildren1" type="bool">False</property>
<property name="SortByFieldType" type="string">DateTime</property>
<property name="DataColumnRenames" type="string" />
<property name="InitialAsyncDataFetch" type="bool">False</property>
<property name="ChromeType" type="chrometype">None</property>
<property name="SystemViewFields" type="string" />
<property name="XmlDefinition" type="string" />
<property name="ChromeState" type="chromestate">Normal</property>
<property name="Filter2IsCustomValue" type="bool">False</property>
<property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
<property name="FeedDescription" type="string" />
<property name="Filter3IsCustomValue" type="bool">False</property>
<property name="SampleData" type="string"> <dsQueryResponse>
<Rows>
<Row Title="Item 1" LinkUrl="http://Item1" Group="Group Header" __begincolumn="True" __begingroup="True" />
<Row Title="Item 2" LinkUrl="http://Item2" __begincolumn="False" __begingroup="False" />
<Row Title="Item 3" LinkUrl="http://Item3" __begincolumn="False" __begingroup="False" />
</Rows>
</dsQueryResponse>
</property>
<property name="FilterOperator2" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterFieldQueryOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Eq</property>
<property name="GroupStyle" type="string">LargeText</property>
<property name="WebsOverride" type="string" />
<property name="AutoRefreshInterval" type="int">60</property>
<property name="UseCopyUtil" type="bool">True</property>
<property name="TitleUrl" type="string" />
<property name="Filter1ChainingOperator" type="Microsoft.SharePoint.Publishing.WebControls.ContentByQueryWebPart+FilterChainingOperator, Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Or</property>
<property name="ViewContentTypeId" type="string" />
<property name="HeaderXslLink" type="string" />
<property name="Xsl" type="string"><xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x" > <xsl:import href="/Style Library/XSL Style Sheets/Header.xsl" /> <xsl:import href="/Style Library/XSL Style Sheets/ItemStyle.xsl" /> <xsl:import href="/Style Library/XSL Style Sheets/ContentQueryMain.xsl" /> </xsl:stylesheet></property>
<property name="TitleIconImageUrl" type="string" />
<property name="HelpMode" type="helpmode">Modeless</property>
<property name="Direction" type="direction">NotSet</property>
<property name="FilterField2" type="string" />
<property name="ListName" type="string">Posts</property>
<property name="ShowWithSampleData" type="bool">False</property>
<property name="AllowClose" type="bool">True</property>
<property name="Filter1IsCustomValue" type="bool">False</property>
<property name="Description" type="string">Displays a dynamic view of content from your site.</property>
<property name="UseCache" type="bool">True</property>
<property name="FilterField1" type="string" />
<property name="AutoRefresh" type="bool">False</property>
<property name="AllowZoneChange" type="bool">True</property>
<property name="ServerTemplate" type="string">301</property>
<property name="NoDefaultStyle" type="string" null="true" />
<property name="AllowEdit" type="bool">True</property>
<property name="FilterIncludeChildren3" type="bool">False</property>
</properties>
</data>
</webPart>
</webParts>]]>
</AllUsersWebPart>
</File>
</Module>
</Modules>
</Project>
The error from the uls
System.IO.FileNotFoundException: The file /_catalogs/MasterPage/MasterPagesModule/RambollDiscipline.master does not exist. at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound) at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies) at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureDependencies(HttpContext context, SPRequestModuleData requestData) at Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureCacheKeyAndViewStateHash(HttpContext context, SPRequestModuleData requestData) at Microsoft.SharePoint.Applicat... 9fb329e3-1023-4164-b6fd-5ffc577c0fd0