Share via


Retrieve and Restore Missing Site Templates

When you use the New Team Project wizard, an error might indicate that a template is missing. This error appears when the site templates for Visual Studio Team Foundation Server have not been added to SharePoint Products. This type of problem typically occurs when you deploy SharePoint Products on a server other than the application-tier server, referred to as a remote portal.

By default, you install two site templates when you install Team Foundation Server by using the default configuration or when you install Windows SharePoint Services Extensions for Team Foundation Server. If you have a remote portal, you must install Team Foundation Server Extensions for Windows SharePoint Services on the remote portal. If multiple servers are running SharePoint Products in a Web farm, you must install these extensions on every server in that farm. Or, you can retrieve the missing site templates from the installation directory for Team Foundation Server.

Note

Team Foundation Server uses both process templates and site templates when you create a project. Process templates have a .zip extension (for example, MsfAgile_New.zip and MsfFormal_New.zip) and are stored in the database for Team Foundation. Site templates have an .stp extension (for example, MSFAgile30.stp and MSFFormal30.stp) and are stored in SharePoint Products. When you create a team project, you specify a process template, which then references the site template by name.

Required Permissions

To follow this procedure, you must be a member of the local Administrators group for the server that is running SharePoint Products.

To install missing site templates using the Team Foundation installation wizard

  1. Download the most recent version of the installation guide for Team Foundation.

    For more information, see the following page on the Microsoft Web site: Installation Guide for Team Foundation.

  2. Open the installation guide, and review "Worksheet: Team Foundation Server and SharePoint Products Collaboration."

  3. Perform the procedures that are provided in the following topics:

    • How to: Install Team Foundation Server Extensions for Windows SharePoint Services

    • How to: Configure Team Foundation Server Extensions for Windows SharePoint Services

    • How to: Verify SharePoint Products

To retrieve and upload a missing site template by using SharePoint Central Administration

  1. To verify that the default site templates are missing, perform the following tasks:

    1. Log on to the server that is hosting SharePoint Products. 

    2. Open a Command Prompt window, and change to the directory that contains the stsadm utility:

      Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin

      Note

      Even if you are logged on with administrative credentials, you must open an elevated Command Prompt to perform this function on a server that is running Windows Server 2008. To open an elevated Command Prompt, click Start, right-click Command Prompt, and click Run as administrator. For more information, see the following page on the Microsoft Web site: User Account Control.

    3. Type the following command:

      stsadm -o enumtemplates

      The command returns a list of all site templates that have been uploaded to SharePoint Products. If VSTS_MSFAgile or VSTS_MSF_CMMI is not listed, you are missing a default site template. The site template must be present to create a project that is based on the corresponding process template.

  2. To retrieve a missing site template, perform the following tasks:

    1. Log on to the application-tier server for Team Foundation.

    2. Open Windows Explorer, and locate the missing templates in the following directory:

      Drive:\Program Files\ Microsoft Visual Studio v10.0 Team Foundation Server\Tools\Templates

      Identify the appropriate file based on the version of SharePoint Products that you are using.

      Template

      File name

      MSF for Agile Software Development

      MsfAgile30.stp

      MSF for CMMI Process Improvement

      MsfFormal30.stp

    3. Copy the file that you need to the server that is hosting SharePoint Products. Paste the file in the same directory that you accessed in step 1b.

  3. Add the template to SharePoint Products.

    1. On the server that is hosting SharePoint Products, open a Command Prompt window, and change to the directory you accessed in step 1b.

    2. Type the following command, replacing FileName and TitleName for the template file and template title that you want to restore:

      stsadm -o addtemplate -filename FileName**.stp -title** TitleName

      For example:

      stsadm -o addtemplate -filename MsfAgile30.stp -title VSTS_MSFAgile

      or

      stsadm -o addtemplate -filename MsfFormal30.stp -title VSTS_MSF_CMMI

      Important

      You must specify the correct title for the template, either VSTS_MSFAgile or VSTS_MSF_CMMI. The process template references the site template by these specific names.

    3. Type iisreset, and then press ENTER.

      You must restart Internet Information Services (IIS) so that the added template is available.

See Also

Tasks

Create a Team Project