TF31002: Unable to Connect to this Team Foundation server - tfs

I have a server that the team foundation server is installed on. I can connect to TFS from several computers, but I can't connect to its from my laptop through internet. I can connect to it from web, but I can't via team explorer.
Indeed I can't add server via team explorer in visual studio, and I receive following error.
I have connected to this server for 3 months. Then I deleted the team project from server and worked offline. Now I want to add my solution to TFS, but I can't connect to it.

Flushing TFS cache fixed this error for me. To do so;
Delete the contents from the following folders
C:\Users\<>\AppData\Local\Microsoft\Team Foundation
C:\Users\<>\AppData\Local\Microsoft\VisualStudio
C:\Users\<>\AppData\Local\Microsoft\VSCommon
Go to the Visual Studio IDE folder in command prompt and run the following command "devenv /resetuserdata" from the Visual Studio IDE folder.
Typical location for 64 bit: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
Typical location for 32 bit: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
Also, not sure if it made a difference but I also deleted this registry key;
KEY_CURRENT_USER\Software\Microsoft\VSCommon\12.0\ClientServices\TokenStorage
Source and more details here

If you are using an older version of VS than TFS, make sure you install the forward compatibility packs.

Related

TFS on Visual Studio Mac

I have installed visual studio mac on my mac.
I have installed the tfs extension on visual studio mac.
I have connected to the tfs server in our server in office.
It successfully connected and it display the collection.
BUT it says it has 0 projects. there should be 4 projects in that collection.
User has admin permissions so it shouldnt be the case. Also it does show projects in tfs browser and vs in windows.
what would be the problem? thanks
Make sure you match the requirements:
Requirements :
Visual Studio Community, Professional, or Enterprise for Mac version
7.5 or later.
Visual Studio Team Services, or Team Foundation Server 2013 and later.
A Project in Visual Studio Team Services or Team Foundation Server, configured to use Team Foundation Version Control.
TFS Authentication:
To connect to TFS, enter the server details and your account
credentials. Enter a domain to use NTLM authentication, otherwise
leave blank to use basic authentication. Select Add Server:
And for your specific issue -- I do not see any / all of my projects :
After authenticating you should see the list of projects. By default,
only TFS projects to are shown. To see other types of projects, check
the "See all projects" box.
Keep in mind that projects that are on the server will not appear if
you don't have the correct privileges.
Please see Connecting to Team Foundation version control for details.
UPDATE:
Just try to uninstall the vs for mac, and install it again with the latest version, installed the latest extension. That should be work.

error tf31002 connecting vs2008 with tfs2010

I have the error tf31002 when i'm trying to add a team foundation server with vs2008. Errror says unable to connect to this Team Foundation Server.
I have installed all in the order that I have found out in the forum:
Visual Studio 2008 Professional edition.
Team Explorer 2008.
Installed Service Pack 1.
install the Visual Studio Team System
2008 Service Pack 1 Forward Compatibility Update for Team Foundation
Server 2010.
I have done that 3, or 4 times, and I still can not connect to a TFS 2010 server.
I'm working with a Windows 7 OS. I have readed all along different forums and I have tried a lot of things but nothing have worked.
Make sure you install the components in the order you listed.
Make sure you can access the TFS from Web Access.
Try to go to the TFS AT machine and connect it from VS to see whether you can connect it.
Make sure you are using the http://tfsserver:port/tfs/ProjectCollection url format.
If you use TFS server name in the URL, try to switch to TFS IP address. If you use IP address, try to switch to TFS server name.
Clean the Cache folder on your client computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache.
Visual Studio/Team Explorer 2008 and Visual Studio 2005 are no longer
officially supported. To connect to the server, these clients must
interface through the MSSCCI provider instead. MSSCCI support only
includes support for source control integration and MSSCCI commands.
Check this site of TFS 2010 support notes for Visual Studio/Team
Explorer 2008:
Version control officially supported with MSSCCI provider. Version
control unofficially supported with SP1 and Compat GDR.

Internal error in Changeset Comments Policy after updating VS2015 to Update 1

Everything was fine about an hour ago, when i tried to checkin something, the policy friendly reminded me to "provide a comment for the check-in". Then I installed VS2015 Update 1, like some of my colleagues did, and after that, i receive the following error message when trying to check something in:
Internal error in Changeset Comments Policy. Error loading the Changeset Comments Policy policy (The policy assembly 'Microsoft.TeamFoundation.PowerTools.CheckinPolicies.ChangesetComments, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not registered.). Installation instructions: To install this policy, follow the instructions in CheckForComments.cs.
My colleagues, of course, don't. As far as i know since VS2012 there is no need to install any version of the Power Tools anymore, so why does this happen? Additionally I also have VS2013 installed, where i do NOT get that error message, that version is working perfectly. Anyone having any idea where i need to look?
Okay, i got it. Somehow the installation messed something up. On my machine the folder
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation
was pretty empty, where my colleagues had a junction there, leading to this folder
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\XXXXXXX
where XXXXXX obviously varies from machine to machine. To find the correct one, go to the extensions folder (one up) and look for the one that contains "Microsoft.TeamFoundation.Build.Controls.dll" and some other Teamfoundation dlls, then open an elevated command prompt and create the missing junction like so:
mklink /j "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\XXXXXX"
(watch out, you need to replace the XXXXX with the folder name on your machine)
- NOTE: Please dont forget to RESTART Visual Studio after doing this change in order to start cheking in seamlessly.
The suggested answer didn't work for me on VS 2015. I already had the junction, yet I was seeing the error.
https://devblogs.microsoft.com/buckh/internal-error-loading-the-changeset-comments-checkin-policy/ pointed me to this:
Cause
With VS 2005 through 2010, to get the Changeset Comments policy,
you had to download and install the Team Foundation Power Tools.
and I had to download and install Microsoft Visual Studio Team Foundation Server 2015 Power Tools.
It's available within VS here:
Visual Studio 2015 > Tools > Extensions and Updates:
VS needs to be restarted after this.

How to connect AX 2009 with Visual Studio Online (Visual Studio Team Services)

I'm trying to connect my AX 2009 installation to VSO (recently renamed to VSTS).
After browsing some forum entries I know that I have to install the following:
Install Visual Studio 2008 (not the Express Edition)
Install Team Explorer 2008
Install Visual Studio 2008 SP1 (This will upgrade both VS2008 and Team Explorer 2008 to SP1)
Install VSTS 2008 Forward Compatibility Update
The installation order is important because the SP1 will update VS and Team Explorer, so I followed that order.
Then I created a project in Visual Studio Online.
Now I want to connect my AX 2009 with the repository in VSO. The VSO is hosting a TFS, so this should work.
As far as I could find out to configure the TFS settings you need to set the Version Control Parameters and the System Settings. I did both as shown in the following screenshots:
When I'm setting the Version Control Paramters the Internet Explorer opened and I needed to authenticate with my User and Password against VSO (so this seems fine to me).
The final step now would be to Create the Repository (Tools -> Developer Tools -> Version Control -> Create Repository. But when I try to do this I get the following error-log: Team Server connection error. [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
The settings in 7 could be wrong - I'm not really sure what values are to set there.
Any help is appreciated.
The plugin is trying to access a SQL Server database. As VSTS is hosted on Azure and uses multi-tenanting there is no access to SQL server on that URL.
I am pretty sure that this is not ever going to work. VSTS is NOT just hosted TFS and even if it were, Visual Studio 2008 is no longer supported as a client for either TFS or VSTS.
Install the following components:
Visual Studio 2010 with SP1 (can be installed side by side with, or as a replacement for VS2008).
Team Foundation Server 2010 SP1 Object Model
KB 2662296
KB 2736182
There's additional discussion around this on the Dynamics Community AX Forum.

TFS Build is failing Because of Missing Programs

I am trying to build a project using TFS2010 Build.TFS resides on its own server, and i am trying to build to a directory on the same machine. The Server does not have VS2010 installed on it.
When the build runs it fails and gives me this error:
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1558): Task failed because "AxImp.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AxImp.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK. 2) Install Visual Studio 2010. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the "ToolPath" parameter of the task.
Then I get a whole bunch of errors saying the namespaces of the project I am building cannot be found. I am not sure if that is all linked to the above mentioned error however.
Thank You!
It is recommended to have Visual Studio 2010 installed on your build machine but it is not a requirement. Since the error message indicates that it didn't find AxImp.exe, can you verify if this file exists on the build machine? The location is C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin (if you're on a 64-bit Windows).
If the file doesn't exist, installing .NET Framework SDK will probably help to resolve that specific error.
Regarding installing Visual Studio on the build machine, Visual Studio is licensed per user, not per machine, so as long as the build machine owner is licensed, you should not need extra license for Visual Studio. But you probably should look at the licensing papers for your edition of Visual Studio 2010 to make sure.
Here's a table in the white paper on licensing:
You need to have the same software running on the build server as you would if building locally. This means you need Visual Studio 2010, and possibly even the same edition of Visual Studio 2010, depending on what you're trying to build.
IMPORTANT REMINDER: Visual Studio is licensed PER USER. This means that as long as you as a user have a license, you can use that SAME LICENSE on your build Machine.
The only "problem" would be if you actually had "No licenses" - meaning you do not own a copy of Visual Studio at all, but have a legal copy of TFS.

Resources