"The server returned content type text/html" error message or "System.IO.IOException" exception after you upgrade a server from TFS 2008 to TFS 2010

Article translations Article translations
Article ID: 2434700 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have two files in Microsoft Team Foundation Server 2008 (TFS 2008). For example, you have file A and file B. The earlier name of file B is same as the current name of file A.
  • You edit and check in the two files in the same changeset by using the source control in TFS 2008.
  • You upgrade the TFS 2008 server to TFS 2010.
  • You edit file A, and then you check it in. 
  • A user tries to download the earlier version of file A.
In this scenario, the user may encounter one of the following issues:
  • If the user connects to TFS by using web access, a System.IO.IOException exception is thrown, and the user receives the following error message:
    Unable to read data from the transport connection: The connection was closed.
  • If the user connects to TFS by using Team Explorer, the user receives the following error message:
    The server returned content type text/html, which is not supported.

CAUSE

This issue occurs because a delta job on the TFS 2010 application tier server incorrectly marks a file. For example, the delta job should mark file A. However, the delta job marks file B instead. Therefore, an exception is thrown on the TFS 2010 application tier server, and the following exception message and stack trace are generated.

Exception Message

Data is Null. This method or property cannot be called on Null values. (type SqlNullValueException)

Stack Trace

at System.Data.SqlClient.SqlBuffer.get_Int64()at Microsoft.TeamFoundation.VersionControl.Server.ItemComposition..ctor(SqlDataReader reader)at Microsoft.TeamFoundation.VersionControl.Server.ContentComponent.QueryFileContents(Int32 fileId)

This exception causes the issue that is described in the “Symptoms” section.

RESOLUTION

To resolve this issue, apply the following hotfix on the application tier of TFS 2010.

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may 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 resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have TFS 2010 installed.

Restart requirement

If the affected files are being used when you apply this hotfix, you may have to restart the computer after you apply the hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfix.

File information

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.
For all supported versions of Team Foundation Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Leviewer.exe10.0.30319.386117,58407-Nov-201022:52x86
Microsoft.teamfoundation.admin.dll10.0.30319.38620,496,76007-Nov-201022:52x86
Microsoft.teamfoundation.build.controls.dll10.0.30319.3861,349,52007-Nov-201022:52x86
Microsoft.teamfoundation.build.jobservice.extensions.dll10.0.30319.38630,12007-Nov-201022:52x86
Microsoft.teamfoundation.build.processcomponents.dll10.0.30319.38662,88007-Nov-201022:52x86
Microsoft.teamfoundation.build.server.dll10.0.30319.386439,68807-Nov-201022:52x86
Microsoft.teamfoundation.build.workflow.dll10.0.30319.386651,15207-Nov-201022:52x86
Microsoft.teamfoundation.common.dll10.0.30319.386516,99207-Nov-201022:52x86
Microsoft.teamfoundation.configuration.commands.dll10.0.30319.386262,56007-Nov-201022:52x86
Microsoft.teamfoundation.framework.server.dll10.0.30319.3861,094,54407-Nov-201022:52x86
Microsoft.teamfoundation.jobservice.extensions.core.dll10.0.30319.38658,28007-Nov-201022:52x86
Microsoft.teamfoundation.jobservice.labmanagerjobs.dll10.0.30319.38691,04807-Nov-201022:52x86
Microsoft.teamfoundation.lab.activities.dll10.0.30319.386763,79207-Nov-201022:52x86
Microsoft.teamfoundation.lab.controller.common.dll10.0.30319.386236,44807-Nov-201022:52x86
Microsoft.teamfoundation.lab.controller.virtualmachinemanagerinterface.dll10.0.30319.38683,40807-Nov-201022:52x86
Microsoft.teamfoundation.lab.execution.dll10.0.30319.386757,12807-Nov-201022:52x86
Microsoft.teamfoundation.lab.leviewer.dll10.0.30319.386440,71207-Nov-201022:52x86
Microsoft.teamfoundation.lab.servicing.dll10.0.30319.38658,24807-Nov-201022:52x86
Microsoft.teamfoundation.lab.testintegration.server.dll10.0.30319.386145,83207-Nov-201022:52x86
Microsoft.teamfoundation.lab.uiutils.dll10.0.30319.386266,12007-Nov-201022:52x86
Microsoft.teamfoundation.lab.workflow.activities.dll10.0.30319.386436,64007-Nov-201022:52x86
Microsoft.teamfoundation.lab.workflowintegration.server.dll10.0.30319.386122,80007-Nov-201022:52x86
Microsoft.teamfoundation.management.controls.dll10.0.30319.3862,355,09607-Nov-201022:52x86
Microsoft.teamfoundation.server.deploy.tfcollection.dll10.0.30319.386534,44007-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.activities.common.dll10.0.30319.386307,12807-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.activities.dll10.0.30319.3861,509,28807-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.activityruntime.dll10.0.30319.386214,96007-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.client.dll10.0.30319.386597,40807-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.client.wpfcontrols.dll10.0.30319.386254,39207-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.clientpackage.dll10.0.30319.38672,62407-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.common.dll10.0.30319.38633,69607-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.controller.dll10.0.30319.386119,72007-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.controls.dll10.0.30319.386417,18407-Nov-201022:52x86
Microsoft.teamfoundation.testmanagement.controls.wpfworkitemcontrols.dll10.0.30319.38699,28007-Nov-201022:52x86
Microsoft.teamfoundation.versioncontrol.client.dll10.0.30319.386694,17607-Nov-201022:52x86
Microsoft.teamfoundation.versioncontrol.common.dll10.0.30319.386230,30407-Nov-201022:52x86
Microsoft.teamfoundation.versioncontrol.controls.dll10.0.30319.3864,435,87207-Nov-201022:52x86
Microsoft.teamfoundation.versioncontrol.server.dll10.0.30319.386614,81607-Nov-201022:52x86
Microsoft.teamfoundation.webaccess.controls.dll10.0.30319.386618,39207-Nov-201022:52x86
Microsoft.teamfoundation.webaccess.server.dll10.0.30319.386486,80007-Nov-201022:52x86
Microsoft.teamfoundation.webaccess.workitemtracking.dll10.0.30319.386382,37607-Nov-201022:52x86
Microsoft.teamfoundation.workitemtracking.adapter.dll10.0.30319.386284,57607-Nov-201022:52x86
Microsoft.teamfoundation.workitemtracking.server.dataaccesslayer.dll10.0.30319.386587,72007-Nov-201022:52x86
Microsoft.visualstudio.qualitytools.common.dll10.0.30319.3861,332,62407-Nov-201022:52x86
Microsoft.visualstudio.qualitytools.controllerobject.dll10.0.30319.386273,83207-Nov-201022:52x86
Microsoft.visualstudio.qualitytools.executioncommon.dll10.0.30319.386448,93607-Nov-201022:52x86
Microsoft.visualstudio.qualitytools.vsip.dll10.0.30319.386349,07207-Nov-201022:52x86
Microsoft.visualstudio.testtools.datacollection.videorecorder.dll10.0.30319.38660,35207-Nov-201022:52x86
Microsoft.visualstudio.testtools.manualtest.common.dll10.0.30319.386810,40807-Nov-201022:52x86
Tfslabconfig.exe10.0.30319.386113,49607-Nov-201022:52x86
Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder.dll.configNot applicable2,05515-Oct-201014:20Not applicable

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 2434700 - Last Review: January 13, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft Visual Studio Team Foundation Server 2010
Keywords: 
kbqfe kbhotfixserver kbfix kbexpertiseadvanced kbsurveynew KB2434700

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com