Redirect Visual Studio to new TFS Location - visual-studio-2013

We have migrated TFS from one server to another. I have verified that the source files and history do exist in the new server location.
How do I now redirect Visual Studio to look at the new server location? I would like to not lose any of the files, history and to realize pending changes, etc.
TIA

You have to connect to the new TFS from Team, Connect to Team Foundation Server menu.

Related

While adding a TFS server to VS2017 Error: "Server already exists in the list below"

While trying to add a TFS server to VS 2017, I encountered an issue where it claims that the server already exists in the list. However, it does not.
The only thing that I can think of that could cause it to think that the server is in the list, is that the two servers used to be one. This was not an issue with VS 2015.
The TFS servers are both 2015 update 3.
Please feel free to ask for any more info.
Give a try with directly using IP address instead of server name when you are adding Team Foundation Sever in VS2017. Something like:
http://192.168.0.1:8080/tfs
Update
You could find your Team Foundation Server 2015 GUID Info in below location:
C:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\Web Services\web.config
There should be a value like
Then you could compare the GUID of two servers, change one of them and re-register db. More details about it take a look at this blog: How to find Team Foundation Server(TFS) GUID Info
This works for me:
Close VS 2017.
Open explorer and go to %appdata%\Microsoft\VisualStudio\15.0_92d7e574. Delete all files.
Go to %localappdata%\Microsoft\VisualStudio\15.0_92d7e574. Delete all files.
Start VS 2017 and enter the TFS server address.
We just did the upgrade and found out that VS 2017 expects (at least for now) that there should only be 1 TFS server present, so you would need to remove the old one, then add the new one. It's probably some confusion with the TFS Workspace. The "Connect" box may still give the error, but after removing the old, adding the new, and pressing the "Connect" button, it worked just fine for me.

team server foundation 2010 is only working in offline mode

In my company, we are using Team Server Foundation 2010.
Last week when I was checking out some ssrs (sql server reporting services 2010) files, I obtained the correct files from TFS. I could see that the files were still connected to TFS.
However, I think there was a time last week where there was a message saying that I was working offline.
Now when I obtained the most current code from TFS, I do get the correct code. However I do not see that the code is connected to TFS any longer. Basically when using Source Control Explorer, I do not see that this code is linked to TFS
Thus I would like to know how to get my code back to accessed in TFS 2010?
Do you see the same problem with all files in TFS or only specific set of files?
Do you see this problem in only one workspace or in all workspaces on a single machine? Or does it affect all users?
What does it mean that files are not linked to TFS, can you post a screenshot?
TFS 2010 was quite weak story for offline and it worked only for solutions (as visible in Solution Explorer). Source Control Explorer always required connection to TFS
I'm also confuse about “files are not linked to TFS”you describle ,can you post a screenshot.
Simply offline mode means TFS 2010 goes offline (disconnect the connectivity properly between your local machine and TFS 2010 server) while your solution is already open though VS 2010.If you checkout files while you are in offline mode, then TFS 2010 source controls system doesn’t record or track any changes you made. But when you reconnect TFS server, the server will get you changes in pengding changes, then you can check in manually.
To get your solution back online to TFS you can try this solution:right-click on the solution name right at the top of the Solution Explorer and select the Go Online option.
More detail: How do I get my solution in Visual Studio back online in TFS?
You need to use the "go online" command to re-sync:
Cannot see go online option in tfs
Note: TFS 2010 is no longer supported and you should upgrade soonest

TFS 2010 add solution to source control not working

I'm facing a strange problem: I have a new installation of TFS 2010 on a test machine and I use Visual Studio 2010 Professional on a client machine. My client was before configured to be connected with another TFS 2010 machine with the same bindings. Now, from my client machine I manage to create Team projects in the default collection, but nothing is happening when I try to add a solution to source control. It means that when I physically push the button "Add solution to source control" no window or message is showing.
Of course I set all the permissions and group memberships on the server machine, and I restarted client and server several times.
How can I solve (or at least make a diagnosys) the problem?
Have you also removed the workspace from the old TFS? Workspace mappings cannot be shared across multiple TFS instances.
Do you have Team Explorer installed? Is TFS set as the default source control provider in Tools -> Options -> Source Control -> Current source control plug-in?

visual studio 2010 team explorer

I have a project on vs 2010. I have tried to add project on windows server 2003 which has tfs 2010 installed. Later on I have switched to windows server 2008 and then installed tfs 2010 again. But I have changed server name.
Now, when I try to add project to tfs, I receive and error says that;
Team Foundation services are not available from server http://old server name:8080/tfs/. Technical information (for administrator): The remote name could not be resolved: 'old server name'
I have tried to add different projects but I havent received any errors. I am thinking problem is like, visual studio installed on my client computer has registered project with old server name and still tries the same server but team explorer can not find the server.
what shall I do?
PS: I am not tring to get my codes on old server. I did not use tfs, just wanted to learn it.
If you get the message when you open Visual Studio then you need to go to Team Explorer and click the "Connect to Team Project" button, then click on the "servers" button and remove the old server. If you need to you can also add the new server here.
If it's when you're opening the solution then you need to remove the Source Control bindings
open the solution and then go to "File", "Source Control", "Change Source Control" this will open up a screen where you can Unbind the Projects and Solutions from the old server.

How to get visual studio to forget about an old tfs?

We moved to a new tfs, with a new name, the old one doesn't exist anymore.
When I create a new blank solution and select file|source control|change source control and click on 'Bind' Visual Studio tries to connect to the old tfs.
Under Team|Connect to tfs|.servers I removed the old one and connected to the new one only.
Also my workspace is mapped to the new server only.
I cannot understand where Visual Studio stores the old tfs or how to destroy it's memory.
You may have to delete your workspace as explained here
http://blogs.msdn.com/b/buckh/archive/2006/09/12/path-is-already-mapped-in-workspace.aspx

Resources