FIX: Error message when you try to enable client-side tracing in Visual Studio 2005 Team Foundation Server: "TF30331: Team Explorer could not connect to the Team Foundation server <servername> used during your last session."

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

On This Page

SYMPTOMS

When you try to enable client-side tracing in Microsoft Visual Studio 2005 Team Foundation Server, you may receive an error message that resembles the following:
TF30331: Team Explorer could not connect to the Team Foundation server servername used during your last session. The server may be offline or the network is unavailable.

Contact your Team Foundation Server administrator to confirm that the server is available on the network. Use the Connect to Team Foundation Server command on the Tools menu to reconnect to your previous server.

The server returned the following error: Index and length must refer to a location within the string.
Parameter name: length
For example, this problem occurs when you modify the Devenv.exe.config file and add the following XML code to enable client-side tracing:
<appSettings>
    <add key="VersionControl.EnableSoapTracing" value="true" />
    <add key="VersionControl.TraceDownloadContent" value="false" />
  </appSettings>
  <system.diagnostics>
    <switches>
      <add name="TeamFoundationSoapProxy" value="4" />
      <add name="VersionControl" value="4" />
    </switches>
    <trace autoflush="true" indentsize="3">
      <listeners>
        <add name="myListener" type="Microsoft.TeamFoundation.TeamFoundationTextWriterTraceListener,Microsoft.TeamFoundation.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" initializeData="c:\tfstrace.log" />
      </listeners>
    </trace>
  </system.diagnostics>

RESOLUTION

Hotfix information

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Prerequisites

You must have Visual Studio 2005 Service Pack 1 (SP1) installed to apply this hotfix. This hotfix must be applied on the client, apply this hotfix on all the computers that have Team Explorer installed.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

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.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.TeamFoundation.Client.dll8.0.50727.873163,84021-Apr-200706:50x86

STATUS

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

MORE INFORMATION

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

Properties

Article ID: 936210 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Visual Studio 2005 Team Foundation Server
Keywords: 
kbautohotfix kbexpertiseadvanced kbfix kbqfe KB936210

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