FIX: Error message when you check in a UTF-8 or UTF-16 encoding file and then update the warehouse in Visual Studio 2008 Team Foundation Server: "An unexpected exception occurred while calculating code churn"
Consider the following scenario. You check in a UTF-8 or UTF-16 encoding file in Microsoft Visual Studio 2008 Team Foundation Server. Then, you update the warehouse in Team Foundation Server. In this scenario, an error message that resembles the following may be logged in the event log:
Event Type: ErrorEvent Source: TFS WarehouseEvent Category: NoneEvent ID: 3000Date: DateTime: TimeUser: N/AComputer: Computer_nameDescription:TF53010: The following error has occurred in a Team Foundation component or extension:Date (UTC): 2/6/2008 4:38:12 PMMachine: TFS_Server_NameApplication Domain: /LM/W3SVC/2065885810/Root/Warehouse-2-128467891781637561Assembly: Microsoft.TeamFoundation.Warehouse, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727Process Details:Process Name: w3wpProcess Id: 1984Thread Id: 2724Account name: NT AUTHORITY\NETWORK SERVICEDetailed Message: Microsoft.TeamFoundation.VersionControl.Adapter: An unexpected exception occurred while calculating code churn: Calculating differences. Previous: changeset 9, item $/Test/Test2.txt, encoding 65001. Current: changeset 11, item $/Test/Test2.txt, encoding 65001. , exception: Exception Message: The file exists.Exception Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)at System.IO.__Error.WinIOError()at System.IO.File.Move(String sourceFileName, String destFileName)at Microsoft.TeamFoundation.Common.FileSpec.MoveFile(String oldPath, String newPath, Boolean overwriteExisting)at Microsoft.TeamFoundation.Common.TFCommonUtil.ConvertFileEncoding(String sourcePath, String destPath, Encoding sourceEncoding, Encoding destEncoding, Boolean includeBom)at Microsoft.TeamFoundation.Common.TFCommonUtil.ConvertFileEncoding(String sourcePath, String destPath, Encoding sourceEncoding, Encoding destEncoding)at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.Diff(String previousName, Int32 previousEncoding, String currentName, Int32 currentEncoding)at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.calculateDifferences(Item previous, Item current)
Note This problem occurs only when the Team Foundation Server application tier components are not installed on the system disk.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:
Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
Note If you have Visual Studio 2008 Team Foundation Server installed on a dual server, you must apply this hotfix only on the application tier server.
You must have Visual Studio 2008 Team Foundation Serverinstalled to apply this hotfix.
You do not have to restart the computer after you apply this hotfix.
Hotfix replacement information
This hotfix does not replace any other hotfixes.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
To work around this problem, install the Team Foundation Server application tier components on the system disk.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates