Disable auto-connect to TFS on VS startup

When starting Visual Studio it automatically tries to connect to your TFS, which can be very annoying if you work offline. You will probably see:

TF30331: Team Explorer could not connect to the Team Foundation server …

You can turn this auto-connect behavior off by setting the following files in the registry:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation
"AutoLoadServer" = 0

Zero means do not reconnect automatically. 

Source: http://blogs.msdn.com/hippietim/archive/2006/03/14/551320.aspx

Downside: you now always have to manually connect (from Team Explorer’s toolbar)

Download .REG file: NoAutoLoadServer.zip

P.S. The Team Foundation Power Tools (TFPT) include a feature called Tweak UI which offers a checkbox to set this registry key – however in the October 2008 version it has a bug (creaing a string value instead of DWORD) and therefore will not work.

TSWA: Report view not showing all work items

By default Report View shows 100 work items only. If you have more than 100 work items in a query and you use Tools » Report View to prepare the list for printing you might notice that not all work items are shown on the report.

Here’s what Hakan Eskici, the father of Web Access, has to say about this:

There’s a limit to the number of work items we display in the “report view” for performance reasons. By default, it’s set to 100, but you can increase this by changing the following line in the web.config file:

<maxWorkitemsInReportList count="100"/>

Enjoy!

Cannot download attachements from Work Item Web Access

Solution provided by Hakan Eskici from Microsoft:

If you are using the WIWA feature in the latest TSWA 2008 SP1, you may notice that it’s not possible to download attachment files from the work item window.

As a workaround, you can edit Wiwa\UI\Pages\WorkItems\DownloadAttachment.aspx and modify the page directive to fix this by adding the HasPermission attribute:

<%@ Page Language="C#"
        AutoEventWireup="true"
        MasterPageFile="~/UI/Masters/Window.master"
        Inherits="Microsoft.TeamFoundation.WebAccess.UI.Pages.WorkItems.DownloadAttachment"
        Codebehind="DownloadAttachment.aspx.cs"
HasPermission="true" %>

Source: http://blogs.msdn.com/hakane/archive/2009/02/13/fix-wiwa-cannot-download-attachments.aspx