You are currently offline, waiting for your internet to reconnect

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."

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 availableon 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=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" initializeData="c:\tfstrace.log" />      </listeners>    </trace>  </system.diagnostics>

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.


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.
File nameFile versionFile sizeDateTimePlatform
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

Article ID: 936210 - Last Review: 10/08/2011 18:03:00 - Revision: 2.0

Microsoft Visual Studio 2005 Team Foundation Server

  • kbautohotfix kbexpertiseadvanced kbfix kbqfe KB936210