URL/Database path to TFS Server Issue

This forum is for all Flare issues related to using Source Control.
Post Reply
TechPubs4
Jr. Propeller Head
Posts: 6
Joined: Fri May 08, 2009 9:18 am

URL/Database path to TFS Server Issue

Post by TechPubs4 »

We have been using TFS with Flare (several versions in use by our different locations from 2017r3 up to 2018r2 ). On Monday everything was working normally, but on Tuesday, several (not all) of our locations could no longer check in files. The error was that the file was skipped. We could not save any changes to the files, because we could not check them out or in. We looked at our Server settings (View > Source Control Explorer > Settings) and somehow the Database URL path "automatically" changed to a different folder on the TFS server. None of us changed that path. Our TFS Admin tells us the path on the server has not changed, and that the only way to fix it is to unbind/rebind with the correct path we had in the past. Does anyone know how this happens? How can we fix this without unbinding and rebinding hundreds of projects?
Thanks, Julie
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: URL/Database path to TFS Server Issue

Post by NorthEast »

The Flare project flprj file contains the source control binding information. It has several parameters for TFS:

Code: Select all

SourceControlDatabase="xxx" SourceControlProviderType="Microsoft Team Foundation Server" ProjectGuid="xxx" SourceControlDatabaseRoot="$/xxx"
As a precaution, if you have local changes that are not checked-in, then make a backup first (Project > Zip project).

To change the binding information:

1) In Visual Studio's source control editor, check out the project flprj file. (I'm assuming that the TFS mapping has not changed, and is to the correct location in TFS.)
2) Edit the flprj file in a text editor, and change the SourceControlDatabaseRoot and SourceControlDatabase (if necessary), so it matches your correct location in TFS.
3) Check in the flprj file.
4) Open the project in Flare. It'll look for the project in the new (correct) TFS location.

I'd also check the flprj file history in TFS, so see if anyone/thing changed the file.

I'd also also ask your TFS admin if they've done anything at the time it occurred.
TechPubs4
Jr. Propeller Head
Posts: 6
Joined: Fri May 08, 2009 9:18 am

Re: URL/Database path to TFS Server Issue

Post by TechPubs4 »

Hello Dave. Thank you, that worked! We are still concerned that we have no idea why this happened and that it might happen again. If anyone has any idea what can cause this disconnect from TFS, please post so that we can hopefully prevent it. Julie
Post Reply