We have started to compile a list of common FAQs from the forums and plan on using this post as a way to deliver them to you.
Q: When installing a new Team Foundation Server, is there a way to use an existing SharePoint Web Application?
A: Yes. During initial setup you have the option to enter any WSS site URL in the setup wizard. Later, if you want all team projects for a server to use a different WSS Site, then after installation you will need to run TfsAdminUtil.exe ConfigureConnections to change the URL that TFS will use. Note that this command does not move your WSS content and you will need to migrate whatever existing WSS docs you have to the new server. Be sure on the new WSS box to install the TFS Sharepoint Extensions or you will not be able to create new Team Projects. In Whidbey and Orcas there is an 1:1 relationship between Team Foundation Server and the WSS Site. We do not support separate WSS sites for different team projects from the same Team Foundation Server. We also do not support a single WSS site working with multiple Team Foundation Servers.
Q: When creating a new TFS Project, is there a way to use an existing SharePoint site collection?
A: No, Team Foundation Server does not support binding to an existing SharePoint site to a new team project. The URL defined in the project creation wizard is a generated URL of a new top-level site that will be created for a team project under a single configured SharePoint web application.
Q: When creating a new TFS Project, is there a way to create a sub-site under an existing SharePoint site collection?
A: No, currently Team Foundation Server does will not work with SharePoint sub-sites. This issue is being investigated.
Q: How do I add or remove accounts from the Service Accounts group after performing a domain move.
Q: How do I: Team Foundation Server Disaster Recovery.
Q: Do I really need to use three different account when installing Team Foundation Server?
A: Check out Noah’s post: Clarification on TFS Setup with Admin Accounts
Q: How do upgrade Team Foundation Server 2005 to a named instance of SQL in Team Foundation Server 2008?
Q: IS TFS Setup account required to be Admin on DT Machine?
A: Short answer no, just a SQL Admin –please see Sudhir’s post on for more information
Q: How do you upgrade Team Foundation Server 2005 with Domain account to Team Foundation Server 2008 with Network Service
A: Run 2998 TFS installer to upgrade from VS 2005 TFS to 2008 TFS. At end of the setup you will your TFS environment upgraded to 2008 with TFS service running under the service account used in 2008.
We do not recommend you to change the service account at time of upgrade
After the upgrade is over you can use TFSAdminUtil to change the service account. The command to change the service account is as follows
TFSAdminUtil changeaccount OldDomainAccount "NT Authority\Network Service"
Q: How does offline mode work in Team Foundation Server 2008 Version Control
A: See Ben Ryan’s posts:
TFS 2008 adds improved support for "offline" scenarios. This blog post identifies the scenarios under which a solution will be placed in "offline" mode.
For some users it may be a bit offputting that taking one solution offline causes all other solutions bound to that same server to go offline when they are opened (assuming no "Go Online" operations in the interim).
Q: How and what information is Team Foundation Server Storing in Version Control
A: Please See:
Q: How do I build Building VS 2008 projects with TFS 2005 or getting around the error: “Solution file error MSB5014: File format version is not recognized. MSBuild can only read solution files between versions 7.0 and 9.0, inclusive:
Q: How do I run two build agents on the same machine in Team Foundation Server 2008.
Q: How do you run Update to "How to run tests in a build without test metadata files and test lists (.vsmdi files)": Test Categories
Q: Changing the recursion type for the initial "Get" that Team Build does
Q: How do I change the drives the TFS Databases are on?
Q: How do I enable SQL Mirroring for Team Foundation Server
Q: Why is it important to uninstall Team Foundation Server 2008 beta releases prior to installing Team Foundation Server 2008 RTM release?
A: It is important to uninstall all of the beta components to ensure the installation has the correct RTM components. The RTM setup will block if any beta components are found.
Q: Why is it important to uninstall Team Foundation Server 2005 from the data-tier server prior to installing Team Foundation Server 2008 in a dual-server configuration?
A: There is no Team Foundation Server 2008 data-tier sku and thus customers should uninstall the TFS 2005 data-tier server prior to installing TFS 2008. More importantly, if after installing TFS 2008 the customer then uninstalls TFS 2005 from the data-tier server, the 2005 uninstall process will delete TFS 2008 sprocs.
Q: Is Team Foundation Server 2008 supported on Windows Server 2008?
A: Yes, the RTM version of TFS 2008 is tested and supported on Windows Server 2008. For details on TFS 2008 version compatibility on MSDN see: http://msdn2.microsoft.com/en-us/library/ms253078.aspx
Q: Is Team Foundation Server 2005 supported on Windows Server 2008?
A: No, Windows Server 2008 is not a supported OS for TFS 2005. You can find details on TFS 2005 version compatibility on MSDN at : http://msdn2.microsoft.com/en-us/library/ms400697(VS.80).aspx
Q: Anything I should know when installing Team Foundation Server on Windows Server 2008?
A: From Brian Harry: Now that Sharepoint is no longer included in Windows Server 2008, you have to install it yourself. Further, when installing TFS on Windows 2008, the TFS installation process won't automatically install Sharepoint (this is due to the fact that there was a great deal of uncertainty at the time about exactly what was being done with Sharepoint in Windows 2008 and we had to take the safe route of not messing with it).
The issue is this. If you try to install WSS 3.0 on Windows 2008, it will not install. It will tell you that you have to install SP1 and you will probably wonder how you can do that without first installing WSS 3.0. The answer is that you need to install the Windows Sharepoint Services 3.0 with SP1 installer that bundles Sharepoint 3.0 and SP1 together.
Q: Is Team Explorer 2005 compatible with Team Foundation Server 2008?
A: Yes, Team Explorer 2005 will work with a TFS 2008 server. Likewise, Team Explorer 2008 will work with a TFS 2005 server. You can find more details on version compatibility on MSDN at: http://msdn2.microsoft.com/en-us/library/bb558975.aspx
Q: Is Team Build 2005 supported on Windows Server 2008?
A: No. Team Build 2005 is supported on Windows Server 2003. Note that Team Build and Team Foundation Server must either both 2005 or 2008 versions. You can find more information on MSDN at: http://msdn2.microsoft.com/en-us/library/bb399235.aspx
Q: Is it possible to install either SQL Server Reporting Services or Analysis Services on remote servers?
A: Yes. In TFS 2005 the SQL Server Reporting Services (SSRS) had to be on the Application Tier and SQL Server Analysis Services (SSAS) had to be on the Data Tier. With TFS 2008 you can deploy these on remote servers. This is documented in the TFS Installation Guide in the section titled: "How to: Customize Deployment of Team Foundation." You can always download the latest version of the guide from MSDN here.
Thanks to MVP El Bruno for creating a Spanish translation of this FAQ located here: http://forums.microsoft.com/MSDN-ES/ShowPost.aspx?PostID=2972526&SiteID=11&mode=131 Januari 2008 23:46
When client applications, such as Team Explorer, or the TFS command-line tools, connect to a Team Foundation application-tier server, the server authenticates the user identity running the clients. By default, these clients use the current user account as their credentials. To change the credential, we can use the command “RunAs”. For example:
RunAs /profile /env /user:mydomain\username "<TFSCommandLine>"
We can upgrade Team Foundation Server Workgroup Edition to Team Foundation Server by following the document “How to: Upgrade from Team Foundation Server Workgroup Edition”. One of the prerequisites is to have a valid product key for Team Foundation Server. For more information about the Team Foundation Server upgrades, please refer to Team Foundation Server Upgrade Types, and How do I upgrade to TFS 2008?
During the upgrade, we may have some PID (Product ID) problems, where the PID field turns read-only when the new PID for TFS is requested. In this case, please run the setup from the installation media of the standard edition, instead of running the upgrade from “Add/Remove program” at Control Panel.
The installation media of the Standard edition has two types:
· Retail Edition.
· Volume License Edition.
When we upgrade the system from the standard installation media, the PID fields may either be empty (for Retail Edition) or be prePIDed with the Volume License key (for Volume License Edition). Both situations result in a successful upgrade.
To set the maximum attachment size for work items
1. In Internet Explorer, open the following URL:
where <tfsserver> represents the name of the Team Foundation Server.
2. In the maxSize box, enter the maximum attachment size in bytes, and then click Invoke. The maximum attachment size is 2 gigabytes.
Related links and documents:05 Agustus 2008 15:31
There are three ways to access TFS from the internet.
- Publishing TFS through a Reverse Proxy
- Locating TFS in an Extranet (“Hosted Scenario”)
- Exposing TFS over a VPN
Here is a brief introduction of each method.
· Publishing TFS Through a Reverse Proxy
With this approach, you can install a TFS server on your internal network and use the ISA Server Web publishing functionality to expose it to the external network. Remote users access TFS over SSL and use Basic authentication. This option will not work unless you have TFS SP1 installed.
· Locating TFS in an Extranet (“Hosted Scenario”)
With this approach, you install your complete TFS application, both tier and data tier, inside your perimeter network, off of your internal intranet. All connections to your TFS come over the Internet, whether they are from external or internal users. TFS can work with or without a domain controller (DC). If your perimeter network does not have access to a DC, the Active Directory service features of TFS will not work. For example, adding users to TFS groups, or adding an Active Directory group to folders in source control, will not work without a DC. This option will not work unless you have TFS SP1 installed.
· Using a VPN connection
With this approach, your remote development team uses a direct VPN connection to your TFS on your internal network. If you have TFS without SP1, or if you require Integrated Windows authentication, then using a VPN connection is your only option. TFS is designed to work in low-bandwidth situations, such as VPN access, and provides acceptable performance when used in this scenario.
Related links and document:
06 Agustus 2008 0:45
- Diedit oleh Hua Chen 30 Januari 2009 6:23 Edit..
1. Enumerate the templates on the WSS server. (Take WSS 3.0 as example)
1.1 Login on the WSS server
1.2 Open command line prompt window.
1.3 Change to the folder <ProgramFolder>\common files\Microsoft Shared\web server extensions\12\bin
1.4 Type “stsadm -o enumtemplates” to list all templates existing on the server, record it or print it.
2. Use the deletetemplate command to remove the old template.
stsadm -o deletetemplate -title VSTS_MSFAgile.
stsadm -o deletetemplate -title VSTS_MSF_CMMI.
3. Use the WSS command tool Stsadm.exe to add the template
Stsadm.exe -o addtemplate -filename "*******.stp" -title TitleName
Stsadm.exe -o addtemplate -filename "********.stp" -title TitleName
There are some template files (*.stp) are in the folder
C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Tools\Templates
More information about addtemplate can be found at http://technet2.microsoft.com/windowsserver/WSS/en/library/700c3d60-f394-4ca9-a6d8-ab597fc3c31b1033.mspx?mfr=true06 Agustus 2008 0:46
Team Foundation Server does not have any specific requirements in terms of supported domain trusts. The types of trust that can be employed depend on the forest and domain types that are deployed in your company’s network. Certain trust relationships might be required by Team Foundation Server depending on how Team Foundation components are deployed across your company’s network.
Generally, Team Foundation Server users and services must be authenticated so that they can access server components. From a trust relationship point of view, Team Foundation Server must trust the domain where the user or service account is defined.
Related links and document:
Trusts and Forests Considerations for Team Foundation Server06 Agustus 2008 0:47
7. Error Message: VersionControl.Adapter: An unexpected exception occurred while calculating code churn
If you store the UTF-8 or UTF-16 encoding file in Microsoft Visual Studio 2008 Team Foundation Server and update the warehouse in Team Foundation Server, there will be an error message in the event log:
Error Message: VersionControl.Adapter: An unexpected exception occurred while calculating code churn
This is a known issue. This problem occurs only when the Team Foundation Server application tier components are not installed on the system disk. To resolve the problem immediately, please contact Microsoft Customer Support Services to obtain its hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
This is fixed in SP1 of TFS 2008.06 Agustus 2008 0:48
8. Unable to undo local changes after you upgrade Visual Studio 2005 Team Foundation Server to Visual Studio 2008 Team Foundation Server
This problem occurs because you restore databases from an instance of Microsoft SQL Server that is using a collation. The collation differs from the collation setting of the restored databases.
A supported hotfix is now available from Microsoft. To resolve this problem immediately, please contact Microsoft Customer Support Services to obtain the hotfix. This hotfix is scheduled to be included with Microsoft Visual Studio 2008 Team Foundation Server Service Pack 1.
Related links:06 Agustus 2008 0:50
9. How to upgrade Windows SharePoint Services from version 2.0 to 3.0 after upgrading Team Foundation Server 2005 to version 2008
Navigate to the "Upgrading to Windows SharePoint Services 3.0" page at http://go.Microsoft.com/fwlink/?LinkID=87953 .
Click the "Perform pre-upgrade steps" link, and follow the steps.
a. You should already have Service Pack 2 for Windows SharePoint Services 2.0 installed, as this is a prerequisite for the Team Foundation Server 2005 installation.
b. Run pre-upgrade scan tool to verify if you can upgrade Windows SharePoint Services from 2.0 to 3.0.
Navigate back to the "Upgrading to Windows SharePoint Services 3.0" page at http://go.Microsoft.com/fwlink/?LinkID=87953 .
Click the "Perform an in-place upgrade" link.
a. Click the "Install and configure Windows SharePoint Services for an in-place upgrade" link.
b. Carry out the "Install Windows SharePoint Services 3.0" steps. You can install the program by running SharePoint.exe from the folder AT\wcu\WSS on the Microsoft Visual Studio 2008 Team Foundation Server installation media, or by downloading Windows SharePoint Services 3.0 from http://www.Microsoft.com/downloads/details.aspx?FamilyID=d51730b5-48fc-4ca2-b454-8dc2caf93951&DisplayLang=en .
c. Choose "Web Front End" as the server type.
Follow the "Run the SharePoint Products and Technologies Configuration wizard" steps.
a. When the following message box appears, click Yes:
SharePoint Products and Technologies Configuration Wizard
The following services may have to be started or reset during configuration:
Internet Information Services
SharePoint Administration Service
SharePoint Timer Service
Choose yes to restart the services if required and continue with the configuration wizard or no to exit the configuration wizard.
b. When prompted, you will need to select a port number for the SharePoint Central Administration site. You cannot specify the old port (the default for a Team Foundation Server 2005 installation is 17012) because that port is in use. You need to select a new port number, such as 17013. Make a note of this port number.
c. Specify NTLM as the Configure Security Settings section.
d. If you see the following message box, click OK.
SharePoint Products and Technologies Configuration Wizard
You must run setup to install new binary files for every server in your server farm. If you have multiple servers in your server farm, run setup and the configuration wizard on the other servers now, and then return to this server and click OK to continue.
For more information about upgrading a server farm, see the Help system.
When you complete the wizard, it will navigate to the Upgrade Running page. This page will refresh once a minute until the upgrade has completed. Please wait until the upgrade has completed before you continue. If you did not make a note of the port number in step 5b, you can see it in the Internet Explorer address bar now. You can also get the port number later by starting "SharePoint 3.0 Central Administration" under Control Panel / Administrative Tools.
Change the SharepointAdminUri setting for the new SharePoint Central Administration port number. Use tfsadminutil.exe from the Tools directory under the Team Foundation Server 2008 installation folder (by default, C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server) to perform this task.
a. Run tfsadminutil configureconnections with the following command line to determine the current SharepointAdminUri setting:
tfsadminutil configureconnections /view
b. You will see output which includes a line similar to this:
Current value for SharepointAdminUri = http://machinename: port/_vti_adm/admin.asmx
c. Run tfsadminutil configureconnections to change the SharepointAdminUri setting to the new port number. You will be using the SharepointAdminUri from the above step, except you will change the port number to the new port number from step 5b, and exclude the trailing /_vti_adm/admin.asmx. Execute this command as below, making sure the value entered in does not include the trailing /_vti_adm/admin.asmx which appears in the SharepointAdminUri value :
tfsadminutil configureconnections /SharepointAdminUri:http://machinename: port
d. Verify the new setting with the following command line:
tfsadminutil configureconnections /view
e. Leave this command prompt window open. We will want to use some of these settings in a moment.
Run the Windows SharePoint Services Extensions setup. This is necessary to upload the TFS templates for SharePoint 3.0.
a. Run Setup.exe on the Microsoft Visual Studio 2008 Team Foundation Server Installation media.
b. Highlight Windows SharePoint Services Extensions and click Install.
At the end of the installation, you will see the “Team Foundation Server SharePoint Configuration” dialog. The dialog appears, with three textboxes.
a. In the “Windows SharePoint Services site” box, enter the value from tfadminutil configureconnections /view for “Current value for SharepointSitesUri”. This will be in the form http://machinename: port/Sites.
b. In the “Reporting Services reports site” box, enter the value from tfadminutil configureconnections /view for “Current value for ReportsUri”. This will be in the form http://machinename/Reports, or http://machinename/Reports_instancename.
c. In the “Reporting Services administrative site” box, enter the value from tfadminutil configureconnections /view for “Current value for ReportServerUri” excluding the trailing /ReportService.asmx This will be in the form http://machinename/ReportServer, or http://machinename/ReportServer_instancename. Again, be sure that the value entered in the textbox does not include the trailing /ReportService.asmx which appears in the ReportServerUri value.
d. Click Apply. You may see a message box similar to the following. If so, click Yes.
The following site has already been configured for Team Foundation Server: 'http://machinename/Sites'. Another instance of Team Foundation Server might already be using this site.
Current configuration information:
Report server: 'http://machinename/ReportServer'
Do you want to overwrite the current values?
e. You may see a message box similar to this. If so, click OK.
The reporting settings for the following Windows SharePoint Services site were updated successfully: 'http://machinename/Sites'.
f. Click Exit to close the “Team Foundation Server SharePoint Configuration” dialog.
Related thread:06 Agustus 2008 0:52
There are three common strategies used to structure solution and project files:
· Single solution
If you work on a small system, create a single solution and place all of your projects within it.
· Partitioned solution
If you work on a large system, use multiple solutions to group related projects together. Create solutions to logically group subsets of projects that a developer would be most likely to modify as a set, and then create one master solution to contain all of your projects. This approach reduces the amount of data that needs to be pulled from the source control when you only need to work on specific projects.
· Multiple solutions
If you are working on a very large system that requires dozens of projects or more, use multiple solutions to work on sub-systems, but for dependency mapping and performance reasons do not create a master solution that contains all projects.
Chapter 3 - Structuring Projects and Solutions in Source Control06 Agustus 2008 1:19
1. How to build .NET 1.1 projects with Team Build
Here are two ways to build .NET 1.1 projects with Team Build:
· “MSBee” in MSBuild Extras – Toolkit for .NET 1.1.
It is an addition to MSBuild that allows developers to build managed codes that target .NET 1.1 in both Visual Studio 2005 and Visual Studio 2008.
For more information about MSBee, please refer to the article: http://www.codeplex.com/Wiki/View.aspx?ProjectName=MSBee
· Invoking Visual Studio 2003 IDE to compile the VS 2003 projects (.NET1.1).
Suppose that Visual Studio 2003 is available in the folder:
$(ProgramFiles)\Microsoft Visual Studio .NET 2003\Common7\IDE\
We can add a AfterCompile entry in the TFSBuild.proj file as this:
<Exec Command=""$(VS2003_Devenv)" "$(VS2003_SolutionName)" /build $(VS2003_Configuration)"/>
</Target>06 Agustus 2008 1:20
· Team Build 2005:
Aaron gives a revised CoreCompile target, a good way to pass MSBuild properties to solutions and projects with Team Build 2005:
Another way is to override the CoreCompile target directly. Here is a brief step list:
1. Find Microsoft.TeamFoundation.Build.targets at the folder:
2. Open the Microsoft.TeamFoundation.Build.targets file with Notepad.
3. Find the CoreCompile target, copy the whole target to the end of the TeamBuild.proj before the </Project> tag.
4. In the team build type file, find the following task in the CoreCompile target.
<!-- Build using MSBuild task -->
Condition=" '@(SolutionToBuild)'!='' " Projects="@(SolutionToBuild)"
Properties="Configuration=%(ConfigurationToBuild.FlavorToBuild);Platform=% (ConfigurationToBuild.PlatformToBuild);SkipInvalidConfigurations=true;VCBuildOverride=$(MSBuildProjectDirectory)\TFSBuild.vsprops;FxCopDir=$(FxCopDir);OutDir=$(OutDir);ReferencePath=$(ReferencePath);TeamBuildConstants=$(TeamBuildConstants);$(CodeAnalysisOption)" Targets="Build" />
The MSBuild task is the second task from the end of the CoreCompile target.
5. Import the additional MSBuild property (LCID) to the MSBuild task at the Properties attribute as the part in bold:
<!-- Build using MSBuild task -->
Condition=" '@(SolutionToBuild)'!='' " Projects="@(SolutionToBuild)"
Properties="Configuration=%(ConfigurationToBuild.FlavorToBuild);Platform=% (ConfigurationToBuild.PlatformToBuild);SkipInvalidConfigurations=true;VCBuildOverride=$(MSBuildProjectDirectory)\TFSBuild.vsprops;FxCopDir=$(FxCopDir);OutDir=$(OutDir);ReferencePath=$(ReferencePath);TeamBuildConstants=$(TeamBuildConstants);$(CodeAnalysisOption);LCID=$(LCID)" Targets="Build" />
· Team Build 2008:
As an option, you can also pass custom properties into individual SolutionToBuild items by specifying the custom values in the metadata. Details can be found at How to: Customize the SolutionToBuild Item Group.06 Agustus 2008 1:21