Visual Studio 2015 更新2。团队资源管理器无法工作。

3

我更新了VS2015到更新2。

升级过程很顺利,但启动后无法访问团队资源管理器。

以下是出现错误的调用堆栈。

    An exception was encountered while constructing the content of this frame.  This information is also logged in "C:\Users\volkov.a\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml".

Exception details:
System.InvalidOperationException: The window search was not yet setup for this search host.
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowSearchHost.ThrowIfSearchNotSetup()
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowSearchHost.set_HelpTopic(String value)
   at Microsoft.VisualStudio.TeamFoundation.TeamExplorer.ToolWindowTeamExplorer.OnToolWindowCreated()
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

我尝试了修复和重新安装,但没有结果。
此外,我在启动过程中遇到了异常情况:
---------------------------
Microsoft Visual Studio
---------------------------
Error HRESULT E_FAIL has been returned from a call to a COM component.
---------------------------
OK   
---------------------------

还有什么其他问题需要我检查吗?


@MrBeanzy 是的,请看下面我的回答。 - Demian
2个回答

2

我关闭了Team Explorer窗口,然后关闭了Visual Studio。我再次打开Visual Studio,点击View菜单并选择Team Explorar,在执行过程中弹出了一个异常消息框,然后尝试重新打开Team Explorer窗口,这样就可以正常工作了。


我刚刚关闭并重新打开了“团队资源管理器”窗口,然后它又开始工作了。之前我记得也做过同样的事情,但是它没有起作用!但是再试一次就可以了。可能在此期间进行了多次重启也有所帮助。我不确定。无论如何,谢谢 :) - Manjunath K Mayya

1
我将Microsoft.TeamFoundation.WorkItemTracking.Client.dll放入全局程序集缓存中,这有所帮助。

你在这样做后必须重新启动吗?你将它添加到了“C:\Windows\Microsoft.NET\assembly\”中,其中有三个文件夹吗?如果是的话,是哪个文件夹? - Bryan
1
@Bryan 我使用gacutil将程序集放入了全局程序集缓存。它会自动检测正确的文件夹。之后你需要重新启动VS。 - Demian

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接