title: Cannot connect to Team Foundation Server in Visual Studio 2012 after update 4
body: <p>I installed Visual Studio 2012 Update 4 (downloaded from <a href="http://www.microsoft.com/fr-fr/download/details.aspx?id=39305" rel="nofollow noreferrer">MS download center</a>) and lost the connection to Team Foundation Server from Team Explorer. Before that, I was connected right at VS2012 startup. It is not the case anymore and I cannot connect to Team Foundation Server from any entry in VS (Team menu or Team explorer window).<br/>
  For instance, nothing happens when I click this link:<br/>
  <img src="https://i.stack.imgur.com/aXsqm.png" alt="Team explorer - Disconnected - Update 4"><br/>
  No modal error window, no indication of an error occuring in windows event viewer or in VS ActivityLog file in roaming directory, so I assume that there was no error.<br/></p>
  
  <p>I tried these and it changed nothing :</p>
  
  <ul>
  <li>Repair VS2012 from Windows configuration panel</li>
  <li>Install Team Explorer for Microsoft Visual Studio 2012
  based on this blog post: <a href="http://blog.jessehouwing.nl/2013/10/connecting-to-tfs-from-any-version-of.html#tfs2012" rel="nofollow noreferrer">Connecting to TFS</a></li>
  <li>Restore my system from the restoration point of VS2012 update 4. I got this error at restart :
  An unspecified error occured during system restore : (Visual Studio 2012 Update 4 (KB2707250)). additional data : 0x80070005.<br/></li>
  <li>Install VS Update 4 in system admin mode but the result was the same (corrupted VS install)<br/></li>
  </ul>
  
  <p>The only working part left of VS was the source control explorer. Appart from starting and using source control explorer, VS is unusable. e.g. when I started a web application using VS development server, I got an error message saying that my VS installation was probably corrupted. The only way around was to uninstall and reinstall VS. Some of my co workers have installed Update 4 and do not experience the same issue. But <a href="https://stackoverflow.com/questions/18311422/cant-connect-to-team-projects-after-upgrading-vs-2012-to-update-3">this Stackoverflow question</a> is about the same bug.<br/>
  Team explorer window is very different <strong>without</strong> Update 4.<br/>
  <img src="https://i.stack.imgur.com/0JFJJ.png" alt="Team explorer - Disconnected"><br/></p>
  
  <p>From event viewer, I see errors which all have the same pattern. Their occuring time match my attempts to install VS 2012 Update 4<br/>
  Here are their data (I have filtered and removed duplicates)<br/></p>
  
  <ul>
  <li>.NET Runtime Optimization Service (clr_optimization_v4.0.30319_64) - 1>Failed to compile: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\TF.exe . Error code = 0x80131f07 <br/></li>
  <li>.NET Runtime Optimization Service (clr_optimization_v4.0.30319_64) -   Failed to compile: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\aspnet_merge.exe . Error code = 0x800700d8 <br/></li>
  <li>.NET Runtime Optimization Service (clr_optimization_v4.0.30319_64) - 1>Failed to compile: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\WinMDExp.exe . Error code = 0x80131f07 <br/></li>
  <li>.NET Runtime Optimization Service (clr_optimization_v4.0.30319_64) - 1>Failed to compile: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\SecAnnotate.exe . Error code = 0x80131f07 <br/></li>
  <li>.NET Runtime Optimization Service (clr_optimization_v4.0.30319_32) -   Failed to compile: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\Microsoft.Expression.Blend.WwaClientPS.dll because of the following error: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018).<br/></li>
  <li>.NET Runtime Optimization Service (clr_optimization_v4.0.30319_32) -   Failed to compile: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\Microsoft.Expression.Blend.WwaClientHost.dll because of the following error: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018).<br/></li>
  <li>.NET Runtime Optimization Service (clr_optimization_v4.0.30319_32) -   Failed to compile: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Blend\Microsoft.Expression.Blend.WwaClient.dll because of the following error: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018).<br/></li>
  </ul>
  
  <hr>
  
  <p>Here is an export of my corrupted VS2012 installation info :<br/>
  Microsoft Visual Studio Premium 2012
  Version 11.0.61030.0 Q11REL
  Microsoft .NET Framework
  Version 4.5.51209</p>
  
  <p>Installed Version: Premium</p>
  
  <p>Team Explorer for Visual Studio 2012   04941-004-0043007-02023
  Microsoft Team Explorer for Visual Studio 2012</p>
  
  <p>Visual Basic 2012   04941-004-0043007-02023
  Microsoft Visual Basic 2012</p>
  
  <p>Visual C# 2012   04941-004-0043007-02023
  Microsoft Visual C# 2012</p>
  
  <p>Visual C++ 2012   04941-004-0043007-02023
  Microsoft Visual C++ 2012</p>
  
  <p>Visual F# 2012   04941-004-0043007-02023
  Microsoft Visual F# 2012</p>
  
  <p>Visual Studio 2012 Code Analysis Spell Checker   04941-004-0043007-02023
  Microsoft® Visual Studio® 2012 Code Analysis Spell Checker</p>
  
  <p>Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout &amp; Hauspie Speech Products N.V. All rights reserved.</p>
  
  <p>The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout &amp; Hauspie Speech Products N.V. All rights reserved.</p>
  
  <p>Oracle Developer Tools for Visual Studio   11.2.0.3.20
  Oracle Developer Tools for Visual Studio Copyright (c) 2005, 2012</p>
  
  <p>PreEmptive Analytics Visualizer   1.0
  Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.</p>
  
  <p>SQL Server Data Tools   11.1.20627.00
  Microsoft SQL Server Data Tools</p>