title: TF30170 : Can't create new Team Projects anymore
body: <p>We used to have a great time with our TFS 2010 installation, but all of a sudden it seems to stab us in the back.</p>
  
  <p>When we try to create a new Team Project (either via VS2010 or VS2012 Team Explorer), TFS encounters an error when importing the Process Templates. It doesn't matter which of the installed Templates i select, the error is always the same.</p>
  
  <pre><code>2013-01-16T11:11:08 | Modul: Work Item Tracking | Thread: 39 | Uploading task type from file "C:\Users\user1\AppData\Local\Temp\TPW_tmp447E.tmp\WorkItem     Tracking\TypeDefinitions\Bug.xml" hochgeladen...
  ---Begin Exception---
  Zeit: 2013-01-16T11:11:08
  Modul: Engine
  Exception Description: TF30162: Error at Task "WITs" from Group "WorkItemTracking".
  Exception Type: Microsoft.TeamFoundation.Client.PcwException
  Exception Message: TF24016: Team project "MyInfoservice" not found.
  Stacktrace:
     at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)
     at Microsoft.VisualStudio.TeamFoundation.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
     bei Microsoft.VisualStudio.TeamFoundation.ProjectCreationEngine.RunTask(Object taskObj)
  --   Inner Exception   --
  Ausnahmemeldung: TF24016: Team project "MyInfoservice" not found. (Type WitPcwFatalException)
  
  Ausnahmestapelüberwachung:    at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.ContextWrapper.get_Project()
     at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.UploadTypeDefinition(String file, Boolean execute)
     at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.WorkItemTypesTask.Execute()
     at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Parse(ContextWrapper wrapper, XmlNode taskXml, Boolean fExecute)
     at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)
  
  ---End Exception---
  </code></pre>
  
  <p><strong>EDIT :</strong> My colleague just found out that this doesn't occur on any other machines, so it must be our Visual Studio instances that are messed up. </p>
  
  <p>So why are they messed up? We caused a desaster by making attempts at desaster recovery (What happens if we have just the database dump of our TFS Collection?). What we've done, in short:</p>
  
  <ul>
  <li>Make a backup of TFS Database (without detaching it from the TFS)</li>
  <li>Create a second Server and reattach the database there</li>
  <li>Run TfsConfig Recover on the DataBase</li>
  </ul>
  
  <p>At first sight, the result seemed to be OK, but at a closer look, many problems surfaced. I guess they go back to the fact that visual studio connected to two servers with the same project- and collection GUIDs, but that's just a guess. Now we're trying to get our machines back to work the way they did when only one TFS was being connected to.</p>
  
  <p>Tried but not working:</p>
  
  <ul>
  <li>devenv resetsettings</li>
  <li>deleting all VisualStudio and TeamFoundation folders below <code>C:\users\user1\AppData\Local</code> and <code>Roaming</code></li>
  <li>deleting registry keys that contain the TFS server names</li>
  </ul>
  
  <p>Can anyone point me in the right direction what else we can try?</p>