Tuesday, April 3, 2012

TFS Server 2010 - Change Server IP problem

It was a problem that makes me mad, but finally I get it :)
I have looked over the whole internet to find a solution without an answer ,so I hope I could help anyone who meets the same problem ...


I have changed TFS server IP and I do not want to re-map all projects again as there are checked out items that I do not want to lose, specially that the projects are too much to keep track or to apply the changes again.


For not talking too much let's find the solution steps:


1) Make sure that the solution file .sln are not read only. You can Just uncheck Read only in file properties.


2) Edit solution file .sln in notepad. Change from SccTeamFoundationServer = http://192.168.3.184:8080/ to SccTeamFoundationServer = http://129.168.3.91:8080/ (I mean here changing from TFS old IP to new IP)then save the file. 


3) Move to the following path and remove all files on it : C:\Users\[USER]\AppData\Local\Microsoft\Team Foundation\3.0\Cache


where [USER] is the desktop user.


4) From Team Explorer add the new server.


5) Open the solution and go online :)


Hope it helps