Thursday, December 29, 2011

Connect Visual Studio 2008 to TFS 2010 - TF30335: error

Question: I am just working on setting up the connection to TFS 2010.  However when I enter the TFS 2010 URL (http://servername:8080/tfs/Collection)   it gives me the following error. 

clip_image002

I have Visual Studio 2008 with SP1 so I am not sure what the issue would be.  Any help would be appreciated.

Answer:

To connect Visual Studio 2008 with TFS 2010, you need to install Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010.

Friday, November 4, 2011

Run VS2010 Tests in 64 bit process on 64 bit build machine

In VS2010 when the test are executed, it always uses a test settings configuration file. There are lot of settings you can do. We are here interested in “How to run tests in 64 bit process on 64 bit machine?”. 

Step 1: First we need to identify the test settings file that the test project (Team build) uses.

Step 2: Open the test settings (example: LocalTestRun.testsettings) file and highlight/choose “Host”. See the image below

image

Step 3: Choose “Run Tests in 64 bit process on 64 bit machine” from the “Run tests in 32 bit or 64 bit process” dropdown. See the image above.

Step 4: If you like to change the “Test Timeouts” to avoid long running builds (25hrs +), highlight/choose the “Test Timeouts” section. See the image below

image

Step 5: Check the “Abort a test run if its total execution time exceeds” and/or “Mark an individual test as failed if its execution time exceeds” option(s) and type in the desired timeout in minutes/hours.

Step 6: Click apply to save changes and run the tests.

This configuration change might speed up the tests and the test process (QTAgent.exe) might be able to use more than 4GB RAM. So this would avoid any memory limitation on the test run and also the test would timeout the if the tests takes more than the specified timeout.

Hope this helps.

Tuesday, November 1, 2011

TFS86002: Team Foundation was unable to initialize the Office AddIn.

Issue: While opening the spreadsheet from Visual Studio 2010, you might get the following error.

image

Resolution

Could you check the followings?

1. Open the Excel Options (Office button on top left -> Excel  options button)

2. Do you see the Team Foundation Add-in in the list (as shown below) ? Also does it point to the 10.0 folder

clip_image002

3. If its disabled, scroll the list to the “Disabled Application Add-ins” and try to enable it.

4. You can also load the Add-in (if its missing) by clicking on the COM Add-ins option in the drop down shown in the image above. Click the Go button

5. Verify that the Add-in shows up – If not add it.

clip_image004

  And also make sure that the .net  programmability  support  is installed.

How to check .Net programmability support is installed?

Go to “Start” – “Control Panel” – then double click on “Add or Remove Programs”

clip_image002[5]

Select “Microsoft Office Professional Plus 2007” and click on the “Change” button

clip_image004[5]

Select “Add or Remove Features” and click on the “Continue” button

clip_image006

Select the “.NET Programmability Support” drop down arrow, choose “Run from My Computer” clip_image008 and click on the “Continue” button.  This should install the .NET Programmability  Support function.

clip_image010

Wednesday, October 26, 2011

Team Explorer Everywhere login issue (network Username/pwd changed)

Verify the useDefaultCredentials is true on the profiles.xml. If the value is false (or not exists), change it to true (or add the property), so that whenever the network username/pwd changes, the profile.xml no need to be changed/updated.

<property name="useDefaultCredentials" type="boolean">true</property>

The profiles.xml file can be found at

<TEE Cache folder>\Profiles\profiles.xml

Your TEE cache location can be found at

clip_image002

The <property name="useDefaultCredentials" type="boolean">true</property> can be found at workspaces.xml at <TEE Cache folder>\workspaces

Tuesday, October 11, 2011

Setup Visual Studio 2010 to working with TFS Azure

Visual Studio 2010 requires VS2010 SP1 and Hosted TFS patch for SP1 to working TFS Azure.

Step 1
Download and Install Visual Studio 2010 SP1. You can ignore this step, if you have VS2010 SP1 already.
http://www.microsoft.com/download/en/details.aspx?id=23691

Step 2
Wait for Service pack 1 installation complete. Download KB2581206 and install.
http://go.microsoft.com/fwlink/?LinkId=212065&clcid=0x409

Step 3
Once the KB2581206 is installed, open up the VS2010 and add Team Foundation Server dialog.



Step 4
On the “Add Team Foundation Server” window, start typing the TFS Azure url (example: https://adhiblog.tfspreview.com)



Step 5
Click ok. You will be presented with Windows Live ID sign in page





Once you successfully login, you will be presented with list of projects. Here after you will work with TFS Azure as if you were working with an internal TFS Server. Enjoy!