title: Create Feature to Upload Site Template File (.stp) in MOSS
body: <p>Following on from <a href="https://stackoverflow.com/questions/1530806/programmatically-add-site-template-stp-to-sharepoint">this question</a>, I have created a feature to upload an site template file as part of an automated build of a SharePoint site.  However, while the feature deploys the .stp file correctly to the hive, and the solution appears in the CAS | Operations | Solution Management page, the site template does not appear in the site template gallery as expected.  I have given the contents of the feature.xml and elements.xml files below; can anyone spot where I am going wrong?  </p>
  
  <p><strong>feature.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Feature  Id="59627434-4B75-4f9c-B830-E6E34007DA70"
            Title=" Team Site Template"
            Description="UKTI Connect Team Site Template"
            Version="12.0.0.0"
            Hidden="FALSE"
            Scope="Web"
            DefaultResourceFile="core"
            xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
    &lt;ElementManifests&gt;
      &lt;ElementManifest Location="elements.xml"/&gt;
      &lt;ElementFile Location="TeamSiteTemplate.stp" /&gt;
    &lt;/ElementManifests&gt;
  &lt;/Feature&gt;
  </code></pre>
  
  <p><strong>elements.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
    &lt;Module Name="TeamSiteTemplate" Url="_catalogs/wt" RootWebOnly="TRUE" &gt;
        &lt;File Url="TeamSiteTemplate.stp" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE"&gt;
          &lt;Property Name="LanguageDisplay" Value="English" /&gt;
          &lt;Property Name="Version" Value="3" /&gt;
        &lt;/File&gt;
    &lt;/Module&gt;
  &lt;/Elements&gt;
  </code></pre>
  
  <p>Thanks, MagicAndi</p>