After installing the latest Windows Update related to .NET 4.0 (KB2468871), Team Builds may begin failing (or simply hanging). Error logs will show an exception raised that a version of ‘System.Runtime.DurableInstancing’ cannot be loaded.
Installing TFS 2010 SP1 will solve the problem. (Also, please install TFS 2010 SP1 CU1 to fix the issues introduced by SP1.)
It appears as though KB2468871 (recently pushed through Windows Update) has the potential of breaking TFS 2010 servers without SP1 installed. (See http://support.microsoft.com/kb/2468871 for the details of the patch.) The particular offending part is the update of the .NET 4.0 framework.
After running windows update on your TFS App Tier and your Team Build machines, automated builds will begin to fail or hang. Looking into the event log will show the error below. (Also, see notes below for other ways to test if you have the problem.)
The exception text reads something like:
Exception Message: Could not load file or assembly ‘System.Runtime.DurableInstancing, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (type BuildServerException)
Exception Stack Trace: at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, XmlReader& xmlResponseReader)
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, HttpWebResponse& response)
at Microsoft.TeamFoundation.Build.Client.AdministrationWebService.TestBuildControllerConnection(Uri controllerUri)
at Microsoft.TeamFoundation.Build.Client.BuildServer.TestConnectionForBuildController(IBuildController controller)
Unfortunately, short of rolling back the Windows Update, you’re going to have to either install TFS 2010 SP1 immediately, or work some version re-direction magic in the GAC. This means you’re likely installing SP1 under duress, but there are very limited options.
Don’t forget to install VS 2010 SP1 as well if you have Visual Studio 2010 or Team Explorer 2010 on any of your TFS 2010 or Team Build servers.
You can find downloads here:
- TFS 2010 SP1 (KB2182621) : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=20506
- VS 2010 SP1 Web Installer (KB983509) : http://www.microsoft.com/download/en/details.aspx?id=23691
- TFS 2010 SP1 Cumulative Update 1 (KB2580221) : http://www.microsoft.com/download/en/details.aspx?id=26211
Your Team Builds will begin running immediately upon installing the TFS 2010 SP1 (and possibly a reboot), however, I really recommend getting everything up to the same versions while your in forced maintenance anyway.
Here’s a few other ways to validate you have the issue:
1) Open up the TFS Administration Console, Select Build Configuration and click Properties on any of the Agents.
2) In the Build Agent Properties window, click the Test Connection button. If you get the System.Runtime.DurableInstancing error, you have the problem and will need to install TFS 2010 SP1 to correct it.