Critcal error: TF30046: The instance information does not match. Team Foundation expected xxx which was not found. Please contact your Team Foundation Server administrator.

This scenario is for After Restoring TFS Database 2013 Open Database instance in Sql Server Management Studio and open database TFS_Configuration Go to tbl_ServiceHost table and look for entry where Name  = “TEAM FOUNDATION”. Copy the HostId Go to TFS INSTALL FOLDER \Application Tier\Web Services folder Open the web.config and…