Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Looking for help with my site definition

  Asked By: Gregory    Date: Aug 04    Category: Sharepoint    Views: 1842

I've got a custom site definition that's working fine that I want to be to use
to deploy our custom master page. In addition making making modifications to
the site definitions XML files, I changed the path in the default.aspx to
reference the custom.master path reference. When I attempt to create the
top-level site it returns an error indicating "The action cannot be completed.
Please try again." If I look at the list of the top-level sites for the
application, it indicates that the site has been created, but when I try to
browse the URL, it returns the error, "File not found." Anyone have any ideas
what's wrong?

The webtemp file has a single configuration node present and has the following
code:

<?xml version="1.0" encoding="utf-8" ?>
<!-- _lcid="1033" _version="12.0.4017" _dal="1" -->
<!-- _LocalBinding -->
<Templates xmlns:ows="Microsoft SharePoint">
<Template Name="COE" ID="10001">
<Configuration ID="0" Title="GIS Branded Site" Hidden="FALSE"
ImageUrl="/_layouts/images/stsprev.png" Description="This sample template
creates a Windows SharePoint Services-enabled Web site with a blank home page.
You can use a Windows SharePoint Services-compatible Web page editor to add
interactive lists or any other Windows SharePoint Services features."
DisplayCategory="GIS Site Definitions" > </Configuration>
</Template>
</Templates>

Additionally, I've got my ONET.XML file referencing our custom master page
file. Here it is:

<?xml version="1.0" encoding="utf-8"?>
<Project Title="$Resources:onet_TeamWebSite;" Revision="2"
ListDir="$Resources:core,lists_Folder;" xmlns:ows="Microsoft SharePoint"><!--
_locID@Title="camlidonet1" _locComment="{StringCategory=HTX}" -->
<NavBars>
<NavBar Name="$Resources:core,category_Top;"
Separator="&nbsp;&nbsp;&nbsp;" Body="<a
ID='onettopnavbar#LABEL_ID#' href='#URL#' accesskey='J'>#LABEL#</a>"
ID="1002" />
<NavBar Name="$Resources:core,category_Documents;" Prefix="<table
border=0 cellpadding=4 cellspacing=0>" Body="<tr><td><table
border=0 cellpadding=0 cellspacing=0><tr><td><img
src='/_layouts/images/blank.gif' ID='100' alt=''
border=0>&nbsp;</td><td valign=top><a
ID=onetleftnavbar#LABEL_ID#
href='#URL#'>#LABEL#</td></tr></table></td></tr>\
;" Suffix="</table>" ID="1004" />
<NavBar Name="$Resources:core,category_Lists;" Prefix="<table border=0
cellpadding=4 cellspacing=0>" Body="<tr><td><table border=0
cellpadding=0 cellspacing=0><tr><td><img
src='/_layouts/images/blank.gif' ID='100' alt=''
border=0>&nbsp;</td><td valign=top><a
ID=onetleftnavbar#LABEL_ID#
href='#URL#'>#LABEL#</td></tr></table></td></tr>\
;" Suffix="</table>" ID="1003" />
<NavBar Name="$Resources:core,category_Discussions;" Prefix="<table
border=0 cellpadding=4 cellspacing=0>" Body="<tr><td><table
border=0 cellpadding=0 cellspacing=0><tr><td><img
src='/_layouts/images/blank.gif' ID='100' alt=''
border=0>&nbsp;</td><td valign=top><a
ID=onetleftnavbar#LABEL_ID#
href='#URL#'>#LABEL#</td></tr></table></td></tr>\
;" Suffix="</table>" ID="1006" />
<NavBar Name="$Resources:core,category_Sites;" Prefix="<table border=0
cellpadding=4 cellspacing=0>" Body="<tr><td><table border=0
cellpadding=0 cellspacing=0><tr><td><img
src='/_layouts/images/blank.gif' ID='100' alt=''
border=0>&nbsp;</td><td valign=top><a
ID=onetleftnavbar#LABEL_ID#
href='#URL#'>#LABEL#</td></tr></table></td></tr>\
;" Suffix="</table>" ID="1026" />
<NavBar Name="$Resources:core,category_People;" Prefix="<table border=0
cellpadding=4 cellspacing=0>" Body="<tr><td><table border=0
cellpadding=0 cellspacing=0><tr><td><img
src='/_layouts/images/blank.gif' ID='100' alt=''
border=0>&nbsp;</td><td valign=top><a
ID=onetleftnavbar#LABEL_ID#
href='#URL#'>#LABEL#</td></tr></table></td></tr>\
;" Suffix="</table>" ID="1027" />
</NavBars>
<ListTemplates>
</ListTemplates>
<DocumentTemplates>
<DocumentTemplate Path="STS" Name=""
DisplayName="$Resources:core,doctemp_None;" Type="100" Default="FALSE"
Description="$Resources:core,doctemp_None_Desc;" />
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Word97;"
Type="101" Default="TRUE" Description="$Resources:core,doctemp_Word97_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\word\wdtmpl.doc"
TargetName="Forms/template.doc" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Excel97;"
Type="103" Description="$Resources:core,doctemp_Excel97_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\xl\xltmpl.xls"
TargetName="Forms/template.xls" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS"
DisplayName="$Resources:core,doctemp_Powerpoint97;" Type="104"
Description="$Resources:core,doctemp_Powerpoint97_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\ppt\pptmpl.pot"
TargetName="Forms/template.pot" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Word;"
Type="121" Default="TRUE" Description="$Resources:core,doctemp_Word_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\word\wdtmpl.dotx"
TargetName="Forms/template.dotx" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_Excel;"
Type="122" Description="$Resources:core,doctemp_Excel_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\xl\xltmpl.xlsx"
TargetName="Forms/template.xlsx" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS"
DisplayName="$Resources:core,doctemp_Powerpoint;" Type="123"
Description="$Resources:core,doctemp_Powerpoint_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\ppt\pptmpl.pptx"
TargetName="Forms/template.pptx" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_OneNote;"
Type="111" Description="$Resources:core,doctemp_OneNote_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\onenote\template.one"
TargetName="Forms/template.one" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS" DisplayName="$Resources:core,doctemp_FP;"
Type="102" Description="$Resources:core,doctemp_FP_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\fp\fptmpl.htm"
TargetName="Forms/template.htm" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS"
DisplayName="$Resources:core,doctemp_BasicPage;" Type="105"
Description="$Resources:core,doctemp_BasicPage_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\blankpgs\_basicpage.htm"
TargetName="Forms/_basicpage.htm" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate Path="STS"
DisplayName="$Resources:core,doctemp_WebPartPage;" Type="106"
Description="$Resources:core,doctemp_WebPartPage_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\smartpgs\_webpartpage.htm"
TargetName="Forms/_webpartpage.htm" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
<DocumentTemplate XMLForm="TRUE" Path="STS"
DisplayName="$Resources:core,doctemp_BlankForm;" Type="1000" Default="TRUE"
Description="$Resources:core,doctemp_BlankForm_Desc;">
<DocumentTemplateFiles>
<DocumentTemplateFile Name="doctemp\xmlforms\blank\template.xml"
TargetName="Forms/template.xml" Default="TRUE" />
</DocumentTemplateFiles>
</DocumentTemplate>
</DocumentTemplates>
<Configurations>
<Configuration ID="-1" Name="NewWeb" />
<Configuration ID="0" Name="Default"
CustomMasterUrl="_catalogs/masterpage/test.master" >
<Lists>
<List FeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101" Type="101"
Title="$Resources:core,shareddocuments_Title;"
Url="$Resources:core,shareddocuments_Folder;"
QuickLaunchUrl="$Resources:core,shareddocuments_Folder;/Forms/AllItems.aspx" />
<List FeatureId="00BFEA71-6A49-43FA-B535-D15C05500108" Type="108"
Title="$Resources:core,discussions_Title;"
Url="$Resources:core,lists_Folder;/$Resources:core,discussions_Folder;"
QuickLaunchUrl="$Resources:core,lists_Folder;/$Resources:core,discussions_Folder\
;/AllItems.aspx" EmailAlias="$Resources:core,discussions_EmailAlias;" />
<List FeatureId="00BFEA71-D1CE-42de-9C63-A44004CE0104" Type="104"
Title="$Resources:core,announceList;"
Url="$Resources:core,lists_Folder;/$Resources:core,announce_Folder;">
<Data>
<Rows>
<Row>
<Field Name="Title">$Resources:onetid11;</Field>
<Field Name="Body">$Resources:onetid12;</Field>
<Field Name="Expires"><ows:TodayISO/></Field>
</Row>
</Rows>
</Data>
</List>
<List FeatureId="00BFEA71-2062-426C-90BF-714C59600103" Type="103"
Title="$Resources:core,linksList;"
Url="$Resources:core,lists_Folder;/$Resources:core,links_Folder;" />
<List FeatureId="00BFEA71-EC85-4903-972D-EBE475780106" Type="106"
Title="$Resources:core,calendarList;"
Url="$Resources:core,lists_Folder;/$Resources:core,calendar_Folder;"
QuickLaunchUrl="$Resources:core,lists_Folder;/$Resources:core,calendar_Folder;/C\
alendar.aspx" EmailAlias="$Resources:core,calendar_EmailAlias;" />
<List FeatureId="00BFEA71-A83E-497E-9BA0-7A5C597D0107" Type="107"
Title="$Resources:core,taskList;"
Url="$Resources:core,lists_Folder;/$Resources:core,tasks_Folder;"
QuickLaunchUrl="$Resources:core,lists_Folder;/$Resources:core,tasks_Folder;/AllI\
tems.aspx" />
</Lists>
<Modules>
<Module Name="Default" />
<Module Name="CustomMasterpage" />
</Modules>
<SiteFeatures>
<!-- BasicWebParts Feature -->
<Feature ID="00BFEA71-1C5E-4A24-B310-BA51C3EB7A57" />
<!-- Three-state Workflow Feature -->
<Feature ID="FDE5D850-671E-4143-950A-87B473922DC7" />
</SiteFeatures>
<WebFeatures>
<Feature ID="00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5" />
<!-- TeamCollab Feature -->
<Feature ID="F41CC668-37E5-4743-B4A8-74D1DB3FD8A4" />
<!-- MobilityRedirect -->
</WebFeatures>
</Configuration>
</Configurations>
<Modules>
<Module Name="Default" Url="" Path="">
<File Url="default.aspx" NavBarHome="True">
<View
List="$Resources:core,lists_Folder;/$Resources:core,announce_Folder;"
BaseViewID="0" WebPartZoneID="Left" />
<View
List="$Resources:core,lists_Folder;/$Resources:core,calendar_Folder;"
BaseViewID="0" RecurrenceRowset="TRUE" WebPartZoneID="Left" WebPartOrder="2" />
<AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1"><![CDATA[
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2"
xmlns:iwp="http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2/Image">
<Assembly>Microsoft.SharePoint, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>

<TypeName>Microsoft.SharePoint.WebPartPages.ImageWebPart</TypeName>
<FrameType>None</FrameType>
<Title>$Resources:wp_SiteImage;</Title>

<iwp:ImageLink>/_layouts/images/homepage.gif</iwp:ImageLink>

<iwp:AlternativeText>$Resources:core,sitelogo_wss;</iwp:AlternativeText>
</WebPart>
]]></AllUsersWebPart>
<View List="$Resources:core,lists_Folder;/$Resources:core,links_Folder;"
BaseViewID="0" WebPartZoneID="Right" WebPartOrder="2" />
<NavBarPage Name="$Resources:core,nav_Home;" ID="1002" Position="Start"
/>
<NavBarPage Name="$Resources:core,nav_Home;" ID="0" Position="Start" />
</File>
</Module>
<Module Name="DefaultBlank" Url="" Path="">
<File Url="default.aspx" NavBarHome="True" Type="Ghostable">
<AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1"><![CDATA[
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2"
xmlns:iwp="http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2/Image">
<Assembly>Microsoft.SharePoint, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>

<TypeName>Microsoft.SharePoint.WebPartPages.ImageWebPart</TypeName>
<FrameType>None</FrameType>
<Title>$Resources:wp_SiteImage;</Title>

<iwp:ImageLink>/_layouts/images/homepage.gif</iwp:ImageLink>

<iwp:AlternativeText>$Resources:core,sitelogo_wss;</iwp:AlternativeText>
</WebPart>
]]></AllUsersWebPart>
<NavBarPage Name="$Resources:core,nav_Home;" ID="1002" Position="Start"
/>
<NavBarPage Name="$Resources:core,nav_Home;" ID="0" Position="Start" />
</File>
</Module>
<Module Name="DWS" Url="">
<File Url="defaultdws.aspx" Name="default.aspx">
<View
List="$Resources:core,lists_Folder;/$Resources:core,announce_Folder;"
BaseViewID="3" WebPartZoneID="Top" />
<View List="$Resources:core,lists_Folder;/$Resources:core,links_Folder;"
BaseViewID="3" WebPartZoneID="Right" WebPartOrder="2" />
<View List="$Resources:core,shareddocuments_Folder;" BaseViewID="6"
WebPartZoneID="Left" />
<View List="$Resources:core,lists_Folder;/$Resources:core,tasks_Folder;"
BaseViewID="7" WebPartZoneID="Left" WebPartOrder="2" />
<AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1"><![CDATA[
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2" target="_blank" rel="nofollow">http://schemas.microsoft.com/WebPart/v2">
<Assembly>Microsoft.SharePoint, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>

<TypeName>Microsoft.SharePoint.WebPartPages.MembersWebPart</TypeName>
<Title>$Resources:wp_Members;</Title>
<Description>$Resources:wp_Members_Desc;</Description>
<FrameType>Standard</FrameType>
<IsVisible>true</IsVisible>
</WebPart>
]]></AllUsersWebPart>
<NavBarPage Name="$Resources:core,nav_Home;" ID="1002" Position="Start"
/>
<NavBarPage Name="$Resources:core,nav_Home;" ID="0" Position="Start" />
</File>
</Module>
<Module Name="CustomMasterPage" List="116" Url="_catalogs/masterpage"
SetupPath="Global">
<File Url="test.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE"
/>
</Module>
</Modules>
<ServerEmailFooter>$Resources:ServerEmailFooter;</ServerEmailFooter>
</Project>

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Looking for help with my site definition Or get search suggestion and latest updates.




Tagged: