We have been troubleshooting an error on a server running WSS and TFS 2008, whereby no new TFS Projects could be created as the Site creation would fail with the following error...
The template you have chosen is invalid or cannot be found.
We then backtracked and tried to instead create just a normal site from the Team Site template, but this resulted in an error which looked much like...
Dependency feature with id 00bfea71-de22-43b2-a848-c05709900100 for feature 'TeamCollab' (id: 00bfea71-4ea5-48d4-a4ad-7ea5c011abe5) is not installed. at Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, Boolean fActivateHidden, Boolean fForce)
...mentioned here, but specific to the DiscussionsList feature.
After trying what was suggested there (i.e. stsadm –o installfeature –name DiscussionsList) as well as deactiviating/activating/uninstalling/installing features, we finally noticed that the DiscusssionsList Feature.xml last modified was far too recent so we copied a version down from another working server and after reinstalling etc, creation of a site based on the Team Site template worked again, but the TFS error persisted.
Further troubleshooting ensued including, but eventually we tried the SharePoint Inspector as suggested here, which is rather useful for providing a hierarchical and visual drill down of various sharepoint objects. We then ran through all the features used by the TFS site template in question, deactivated/activated etc, but still no change. Eventually it turned out that the IssuesList Feature.xml had also had itself changed somehow, so pulling this down from a working server and doing the same as for the DiscussionsList Feature.xml finally resolved both errors.
The Scope and Hidden settings specifically had been modified, presumably by someone during some previous troubleshooting and/or development. They're built in files so this shouldn't have happened, but hope this at least saves someone else the wasted time and effort.