user2330678
user2330678

Reputation: 2311

TF31002: Unable to connect to this Team Foundation Server for VS 2010, VS 2012 is connected to same server from same machine

I have VS2012 and VS2010 on the same machine. VS2012 is connected to Team Foundation Server (now VSOL/Visual Studio Online) but, VS2010 gives below error when trying to add Team Foundation Server (now Visual Studio Online) to the list.

TF31002: Unable to connect to this Team Foundation Server Possible reasons for failure include:

For further information, contact Team Foundation Server administrator.

Upvotes: 4

Views: 13479

Answers (3)

Jegadeesh Kumar.S
Jegadeesh Kumar.S

Reputation: 11

This can happen when you have done a full scan(Anti -Virus) to your laptop -> TFS work space don't connect to the TFS server and gives TF31002: Unable to connect to this Team Foundation Server Error.

Reason: Full Anti-Virus scan to a machine un-mounts and mounts the network drives, which leads to breaks the mapping of local drive to the TFS server path.

Solution: 1. Clear the cookies in following path c:\Users\jekumar\AppData\Roaming\Microsoft\Windows\Cookies 2. If it still doesn’t help a. Disconnect from Team Foundation server ( VS IDE -> Team-> Disconnect from Team Foundation Server) b. Rename the locally mapped folders c. Now connect to Team Foundation server ( VS IDE -> Team-> Connect to Team Foundation Server)

Upvotes: 0

Donald N. Mafa
Donald N. Mafa

Reputation: 5283

To fix this, you need to run the TFSConfig command with the ChangeServerID parameter as follows:

1) Open elevated command prompt and change current directory to c:\Program Files\Microsoft TeamFoundation Server 12.0\Tools

2) Execute “TfsServiceControl.exe quiesce”

3) Execute tfsconfig changeserverid /sqlinstance: /DatabaseName:Tfs_Configuration /projectcollectionsonly .
Make sure to pass projectcollectionsonly parameter.

4) Execute “TfsServiceControl.exe unquiesce”

Upvotes: 0

Ryan
Ryan

Reputation: 4639

I believe VS2010 requires VS2010 Service Pack 1 and a compatibility patch (http://www.microsoft.com/en-us/download/details.aspx?id=29082) to connect to TFS 2012. Do you have those?

Upvotes: 5

Related Questions