I believe in Hyper-V!

Team Foundation ServerCategory Archives

About TFS Administration

TFS 2015 Update1 post migration [Build machines]

Hi there,

Few days ago I migrated TFS2013.3. to TFS2015.1 on a new hardware. After migration I had few things to edit. Among other things I had to delete and edit cache in the TFS Build machines because they have not upgraded.

I made two changes on the build machines.

1. Unregister old TFS and register the new one. Simple as that!

2. Delete / edit TFS build machine cache! What happens if we don’t change these parameters?


C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\BuildInfo\Microsoft.VisualStudio.ReleaseManagement.BuildInfo.targets (147): Unable to connect to the remote server. [C:\build\BizDataXMasterVS2015\STF\BizDataXDesignComponents\DataMasking.Common\DataMasking.Common.csproj]”

“C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\BuildInfo\Microsoft.VisualStudio.ReleaseManagement.BuildInfo.targets (147): Following information could not be added to build information because there was an error while communicating with TFS: ProjectItemSpec. Error: TF400324: Team Foundation services are not available from server https://oldtfsservername.domain.name:8088/tfs/defaultcollection. [C:\build\BizDataXMasterVS2015\Monitor\Xml2Report.Converter\Xml2Report.Converter.csproj”

What we need to do?

Logon to TFS build machine, open Windows Explorer, select Show hidden files, folders and drives.

Browse to “C:\Users\loggedinuser\AppData\Local\Microsoft\Team Foundation\5.0”
Open Cache folder and delete every file/folder from that.

After that open Configuration –> Version Control folder and open LocalItemExclusions.config file with a notepad


Change old TFS name with a new one! After that you can do build without warnings and errors.



TFS 2015.1 upgrade/migration error [End of Central Directory record could not be found]

Hi there,

Few days ago I had a opportunity to upgrade/migrate production TFS 2013 Update 3 to TFS 2015 Update 1. The migration process is “straightforward” but as usual every time something goes wrong. Unfortunately, this time I didn’t have exception Smile.
As I mentioned above, we had TFS 2013.3 but it wasn’t a clean installation, that was an in-place upgrade from TFS 2008 –-> 2010 –> 2013 in the last couple of years. This time I decided to do upgrade to the new hardware.

Here I’ll not explain how to migrate, I want to explain what type of error I had and how solve problem.

During the upgrade process I got error and warning…
[2016-02-15 20:13:22Z][Error] End of Central Directory record could not be found.
[2016-02-15 20:13:19Z][Warning] Invalid zip file in process template MSF Agile For Project Server 2007, End of Central Directory record could not be found.
[2016-02-15 20:13:20Z][Warning] Invalid zip file in process template MSF CMMI For Project Server 2007, End of Central Directory record could not be found.


When you try to find resolution on the Internet you will find NOTHING! But luckily error is obvious. We need to delete problematic Process Templates. Open Process Template Manager from the Visual Studio, find the problematic templates and delete them.


When you are done, have to repeat whole procedure. Backup databases, restore, upgrade… and at the end you will have successful TFS upgrade Winking smile

Thank you Ognjen for your precious help Smile



Upgrade TFS 2013 to TFS 2015 RC [New hardware upgrade procedure]

This days I had honor to upgrade TFS 2013 to TFS 2015 RC. RC is release candidate and it’s not officially supported, but if you have “support” from your MVP fellows and experts it’s not that hard to do something like this Smile.

Of course, at the beginning I had a couple of issues with upgrade, but at the end everything went perfectly thanks to the Microsoft and MVPs experts and now I want to share this experience with you.

The TFS infrastructure is as follows:

TFS 2013
1. Windows Server 2012
2. TFS Version: 12.0.21005 (Tfs2013.RTM)
3. SQL Server 2012 with SP2 Enterprise Edition

TFS 2015 RC
1. Windows Server 2012 R2
2. TFS 2015 RC
3. SQL Server 2012 with SP2 Enterprise Edition

Both servers are in the same domain and they have been using the same service accounts.

We did following (this is classic/usual upgrade procedure):
1. TFS Backup procedure through TFS Administration Console –> Scheduled Backups –> Manual backup (on the TFS 2013 side)
2. Databases have been restored through TFS Administration Console –> Restore Databases (on the TFS 2015 RC side)
3. During the Upgrade process on the last wizard tab we’ve got the error visible in the picture below.


And what to do now? Sad smile

1. Restore TFS databases again
2. Open SQL Server Management Studio on the TFS 2015 RC
3. Execute the following script in the Tfs_Configuration database:

[sourcecode language='sql'  padlinenumbers='true' collapse='false' wraplines='false']
UPDATE  tbl_RegistryItems
SET     RegValue = SUBSTRING(RegValue, 1, CHARINDEX(', Version=', RegValue) - 1)
WHERE   PartitionId = 1
        AND ParentPath = '#\Configuration\ServiceProvider\ExtensibleTypes\'
        AND CHARINDEX(', Version=', RegValue) > 0



4. Run Upgrade procedure again and voila Winking smile


Microsoft will fix this issue in Team Foundation Server 2015 RTM!

Enjoy in upgrade Hot smile