How to: Unextend the Team Foundation Server Web Site

If the Web site for Team Foundation Server has been extended in SharePoint Products and Technologies, the Web site will not function correctly. For information about how to determine whether the Web site has been extended, see How to: Determine Whether the Web Site for Team Foundation Server Has Been Extended.

If you determine that the Web site has been extended, you must unextend it by removing SharePoint Products and Technologies from the Web site and then restoring the Web.config file.

Note

The removal process is different depending on the version of SharePoint Products and Technologies that you are using.

Unextend the Web Site for Team Foundation Server

To unextend the site in Windows SharePoint Services 2.0

  1. On the server that hosts Windows SharePoint Services 2.0, click Start, click Administrative Tools, and click SharePoint Central Administration.

    Internet Explorer opens to the Windows SharePoint Services Central Administration site.

  2. In the Virtual Server Configuration section, click Configure virtual server settings.

  3. On the Virtual Server List page, click Team Foundation Server.

  4. On the Virtual Server Settings page, in the Virtual Server Management section, click Remove Windows SharePoint Services from virtual server.

  5. On the Remove Windows SharePoint Services from Virtual Server page, in the Remove Windows SharePoint Services section, click Remove without deleting content databases, and then click OK.

To unextend the site in Windows SharePoint Services 3.0

  1. On the server that hosts Windows SharePoint Services 3.0, click Start, click Administrative Tools, and click SharePoint 3.0 Central Administration.

    Internet Explorer opens to the Central Administration site.

  2. Click Application Management.

  3. In the SharePoint Web Application Management section, click Web application list.

  4. On the Web Application List page, click Team Foundation Server.

    Note

    If Team Foundation Server does not appear, you do not have to unextend it.

  5. Click Application Management to return to the Application Management page.

  6. In the SharePoint Web Application Management section, click Remove SharePoint From IIS Web Site.

  7. On the Remove SharePoint From IIS Web Site page, verify that Team Foundation Server is the specified Web application.

  8. Specify the SharePoint IIS Web site and zone to remove.

  9. Make sure that the Delete IIS Web sites check box is not selected, and click OK.

Restore the Web.config File

To restore the Web.config file

  1. On the application-tier server, open Windows Explorer.

  2. Locate the directory that contains the file that configures the Web site for Team Foundation Server.

    By default, this file is located in Drive:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services.

  3. Rename the .config file with the embedded date to Web.config.

    The .config file will have a date-embedded label (for example, web_2007_7_28_4_42.config). When the Web site was extended, SharePoint Products and Technologies created a copy of the file and changed the name. This step restores the original name.

    If the Web.config file was deleted, restore the file from the installation source for Team Foundation Server. For more information, see How to: Restore a Missing Web.config File.

  4. Open a Command Prompt window, type iisreset, and press ENTER.

    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 Microsoft Web site.

    You must restart IIS for the changes take effect.

See Also

Tasks

Resolving Configuration Issues in SharePoint Products

Other Resources

Managing Team Foundation Server Sites in Windows SharePoint Services

Correcting Connection and Configuration Procedures