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.
The removal process is different depending on the version of SharePoint Products and Technologies that you are using.
To unextend the site in Windows SharePoint Services 2.0
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.
In the Virtual Server Configuration section, click Configure virtual server settings.
On the Virtual Server List page, click Team Foundation Server.
On the Virtual Server Settings page, in the Virtual Server Management section, click Remove Windows SharePoint Services from virtual server.
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
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.
Click Application Management.
In the SharePoint Web Application Management section, click Web application list.
On the Web Application List page, click Team Foundation Server.
If Team Foundation Server does not appear, you do not have to unextend it.
Click Application Management to return to the Application Management page.
In the SharePoint Web Application Management section, click Remove SharePoint From IIS Web Site.
On the Remove SharePoint From IIS Web Site page, verify that Team Foundation Server is the specified Web application.
Specify the SharePoint IIS Web site and zone to remove.
Make sure that the Delete IIS Web sites check box is not selected, and click OK.
To restore the Web.config file
On the application-tier server, open Windows Explorer.
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.
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.
Open a Command Prompt window, type iisreset, and press ENTER.
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.