Question : Trouble deploying SharePoint feature - "Root Element is missing"

Hi,

I am going through a tutorial on creating and deploying features in MOSS2007. I am getting the error "Root Element is Missing" when trying to install the feature with stsadm.exe -o installfeature -name LinkingExample. I have follwed the code exactly as it is in the tutorial and I can't see an error. Could someone please help?

I have 4 files in the LinkingExample folder under the Features folder under the 12 hive:

1. Features.xml - here is the code:
  <?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
  Id="8C36C9BC-7660-49c2-A449-577E77DCA1A4"
  Title="Toolbar and Menu Links"
  Description="Adding links to tootlbar and menu"
  Scope="Web"
  Hidden="FALSE"
  AlwaysForceInstall="TRUE">
  <ElementManifests>
    <ElementManifest Location="Menu.xml" />
    <ElementManifest Location="Toolbar.xml" />
  </ElementManifests>
</Feature>

2. Menu.xml :
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module
    Name=""
    Path=""
    Url="">
    <File
      Url="Help.aspx"
      Type="Ghostable"
      IgnoreIfAlreadyExists="False">
    </File>
  </Module>
  <CustomAction
    Id="SiteActionsToolbar"
    GroupId="SiteActions"
    Location="Microsoft.SharePoint.StandardMenu"
    Sequence="1000"
    Title="User Guide"
    Description="A how to guide">
    <UrlAction Url="Help.aspx"/>
  </CustomAction>
</Elements>

3. Toolbar.xml :
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Title="My Site"
                Sequence="10"
                RegistrationType="List"
                RegistrationId="101"
                Location="EditFormToolbar"
                Id="MySite Toolbar">
    <UrlAction Url="/_layouts/mysite.aspx" />
  </CustomAction>  
</Elements>

4. Help.aspx :
<%@ Page language="C#" MasterPageFile="~masterurl/default.master"%>
<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
      <SharePoint:ListFormPageTitle runat="server"/>
      <h1>Hello World</h1>
</asp:Content>

Answer : Trouble deploying SharePoint feature - "Root Element is missing"

Your missing manifest.xml file in your wsp solution. Please go through the steps of building the wsp solution http://www.sharepointnutsandbolts.com/2007/07/building-and-deploying-sharepoint.html

Or you could use wspbuilder to build solution for you.

http://wspbuilder.codeplex.com/
Random Solutions  
 
programming4us programming4us