Category Archives: 8107

How to set the SMTP Port in TFS 2010

The Problem

  • You are configuring SMTP Settings for TFS 2010 and want to specify a different port for your SMTP server than the default port (which would be port 25)

    How to specify a custom SMTP port for TFS 2010?
    Figure: TFS 2010 does not allow to set a custom SMTP port.

Solution #1: Change config file

  • As answered here and here, you could add the following XML to the TfsJobAgent.exe.config file (usually located in C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\TFSJobAgent):

  <smtp deliveryMethod="Network">
    <network port="2525"/>

  • Keep in mind that this is only valid for TFS notifications itself and not for notifcations from SQL Server Reporting Services or the SharePoint-based Project Portal.

The Solution #2: Install a local SMTP server

  1. Install the SMTP Service on Windows Server and ask it to route all SMTP traffic to a different SMTP server.
  2. On the Delivery tab, click Advanced, an enter the SMTP server name as "smart host".
  3. On the Delivery tab, click Outbound Connections, and set the TCP port (= SMTP port).

Set your external SMTP server as smart host.Set TCP port to the SMTP port you want to use.
Figure: Setting up a local SMTP server has the great benefit that you can use it SMTP for other applications, too (like notifications from SQL Server Reporting Services or SharePoint).

Visual Studio 2010 SP1 Installation Error: Generic Trust Failure

General Trust Failure. How we love those descriptive error messages.Problem description:
Visual Studio (VS) Service Pack (SP) 1 fails with an
"Generic Trust Failure".

Probably the .ISO file is corrupt.

How to fix:
You can try to re-download the .ISO file or use the VS SP1 Web Installer (which downloads only the required patches itself) and re-apply the patch, when asked to chose between re-apply and uninstall.

More Information:
The .ISO file has the following checksums (according to Heath Stewart’s blog post):

  • SHA1: 61C2088850185EDE8E18001D1EF3E6D12DAA5692
  • CRC: C77C2A14

Updated (Sept 3rd, 2011) to include link to checksum of .ISO file. (Thanks to Ahmed Ilyas)

Installing SharePoint 2010 complete install using local accounts

The Scenario

You want to install SharePoint 2010 complete install and use local accounts (instead of Active Directory accounts).

The Problem

You receive the following error message:

The specified user is a local account. Local accounts should only be used in stand alone mode.
Error Message: The specified user is a local account. Local accounts should only be used in stand alone mode.

The Solution

The workaround is to use a PowerShell script instead of the Wizard, as explained at:

Update for TFS 2010 (RTM version) including all hot fixes

Get your TFS current: All hotfixes bundled in one updateMicrosoft released an update (KB 983578) for:

  • Team Foundation Server 2010
  • All Team Foundation Server 2010 clients (aka Team Explorer)

It’s the same update package that will update the client and server components.

What’s in that upgrade?

According to Brian Harry and the KB article:

Enables Visual Studio 2010 Lab Management functionality

  • Improves performance for Lab Management Workflow Wizard.
  • Improves performance for running automated test cases on Network Isolated Lab environments.
  • Fixes an issue in which a Test Controller service account that is the same as a Lab Service account causes issues with environment capabilities.
  • There is a new Expression Encoder 4.0 based Video Diagnostic data adapter to collect video recording when you perform tests. This diagnostic adapter replaces the Windows Media Encoder base video diagnostic adapter.
  • Labels created in TFS2008 do not contain items after migration to TFS 2010 under certain rename/delete conditions.
  • TFS Cannot be re-installed (ATOnly) targeting a database that was patched before.
  • Tfs2010Beta2ToRTM operation is not executed when RC database is upgraded by post RTM server (RTM + Patch1 or SP1).
TFS Build
  • VS2008 “smart device” projects pick up the 2010 MSTEST rather than the 2008 one.
  • Unavailable build agents are pinged indefinitely rather than giving up after an hour.
  • Duplicate changeset listings in build report.
  • Test results for VS2008 solution not published in case of a failed test.
  • Cannot delete build drops if a controller goes down
  • Open Process File Location” grayed out on menu- right click on a build definition when connected to a TFS 2008 server
Version Control
  • Branch from label has been removed in TFS 2010 – now it’s back.
  • Convert folder to branch on a hierarchy root folder with children and cycle renames crashes VS.
  • Unshelve reports bogus errors about a null DownloadUrl when dependent renames are shelved and child item names overlap.
  • Incorrect query plan on QueryPendingChanges when querying all users pending changes can lead to bad performance.
  • merge /discard in both directions causes unnecessary “empty” merges in future merge attempts.
  • Issue in merge causes a conflict not to be generated when there is a rename in the target and source.
  • Overly aggressive automatic detection of file encoding can result in inappropriate encoding mismatches during merges.
Work Item Tracking
  • Work item queries containing references to deleted fields can cause a red X on the work items node.
Team Web Access
  • Firefox Browser: "Link Selected Items to a New Work Item" and other dialogs don’t launch pages successfully
  • Chrome Browser: Adding an attachment doesn’t work
  • Chrome Browser: Select Query Dropdown doesn’t work in Choose Work Items window
  • Chrome Browser: Retain/Delete a build in Build Report page will get an exception “Unexpected callback response”
  • Query Picker Web Part Incorrectly Renders List Items (Rows) in List View (Overflow DIVs) within WebKit-based Browsers (including Safari, Chrome, etc)

Where should I apply the upgrade?

TFS component: Applies to:
TFS Application Tier Yes
TFS Data Tier (SQL Server) No
Team Explorer 2010 Yes
Visual Studio 2010 Yes
Visual Studio 2005/2008 No
Microsoft Test Manager (MTM) Yes
TFS Build Controller Yes
TFS Build Agent Yes
TFS Test Controller Yes
TFS Test Agent Yes
TFS Lab Agent Yes
System Center Virtual Machine Manager (SCVMM) No
SQL Server Reporting Services No
SQL Server Analysis Services No
SharePoint/WSS No

Download the update package now.

Frequently asked questions

  • Should I install the update although I do not use Lab Management?
    Yes, it contains all TFS fixes that have been made since TFS 2010.
  • Is this a Service Pack?
  • If I reinstall or add TFS components later, do I have to reapply this patch?
  • Should I stop TFS service prior to installing?
    No, this is not necessary and will be done automatically by the update.

SOLVED: Reporting Services error: Cannot impersonate user for data source ‘TfsReportDS’ (rsErrorImpersonatingUser)

Getting this error (and your TFS is installed on a Domain Controller)?


An error has occurred during report processing. (rsProcessingAborted)
Cannot impersonate user for data source ‘TfsReportDS’. (rsErrorImpersonatingUser)
Logon failed. (rsLogonFailed)
Logon failure: the user has not been granted the requested logon type at this computer. (Exception from HRESULT: 0x80070569)


Make sure that the local policy of the DC allows for login of non-admin users.

(Domain Controller Security Policy > Local Policies | User Rights Assignment | "Allow log on locally" policy and add domain users.

(Thanks to Carl Daniel who wrote about the solution in the MSDN Forums.)