Everything SharePoint and XAML

My continuous learning of SharePoint, XAML, Silverlight, Windows Phone 7, Windows 8, Office, VSTO, C#…

ONET.XML, Site Definitions, and alternate default.aspx

Posted by Steve Pietrek on October 10, 2007

Today I ran into a frustrating issue. I was creating some custom site definitions and when I attempted to provision a site, I would get the “404 Not Found” error. Instead of creating a default.aspx, I created several derivatives with different names (e.g. defaultxxxxx.aspx). The issue was in the ONET.XML file in the modules section, I referenced the correct URL but did not give it a name.

    <Module Name=”CustomSite01Url=”” Path=””>

      <File Url=”default01.aspxName=”default.aspxNavBarHome=”TrueType=”Ghostable“>

        <NavBarPage Name=”$Resources:core,nav_Home;ID=”1002Position=”Start” />

        <NavBarPage Name=”$Resources:core,nav_Home;ID=”0Position=”Start” />

      </File>

    </Module>

Advertisements

2 Responses to “ONET.XML, Site Definitions, and alternate default.aspx”

  1. My fellow on Orkut shared this link with me and I’m not dissapointed that I came here.

  2. Mithilesh S said

    Thanks a lot I was facing same problem. This link was very helpful :). Thanks once again…

Sorry, the comment form is closed at this time.

 
%d bloggers like this: