Visual studio 2013 连接到TFS时Visual Studio 2013崩溃

Visual studio 2013 连接到TFS时Visual Studio 2013崩溃,visual-studio-2013,Visual Studio 2013,我今天早上开始遇到这个异常。不知道是什么原因造成的,也不知道如何解决。当我启动Visual studio并连接到我们的开发TFS实例时,该实例失败,出现异常“Microsoft Visual studio 2013已停止工作”。从事件查看器获取以下信息 应用程序:devenv.exe 框架版本:v4.0.30319 描述:由于未处理的异常,进程已终止。 异常信息:System.AccessViolationException 堆栈: 位于Microsoft.TeamFoundation.Work

我今天早上开始遇到这个异常。不知道是什么原因造成的,也不知道如何解决。当我启动Visual studio并连接到我们的开发TFS实例时,该实例失败,出现异常“Microsoft Visual studio 2013已停止工作”。从事件查看器获取以下信息

应用程序:devenv.exe 框架版本:v4.0.30319 描述:由于未处理的异常,进程已终止。 异常信息:System.AccessViolationException 堆栈: 位于Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DataStoreNative.FinishDataStoreInit(IntPtr、Int32、Int32、Int32、System.String、System.String、System.String) 位于Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DataStore.FinishDataStoreInit(Int32、Int32、Int32、System.String、System.String、System.String) 在Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()中 位于Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.Microsoft.TeamFoundation.Client.ITfsTeamProjectCollectionObject.Initialize(Microsoft.TeamFoundation.Client.TfsTeamProjectCollection) 位于Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.InitializeTeamFoundationObject(System.String,System.Object) 位于Microsoft.TeamFoundation.Client.TfsConnection.CreateServiceInstance(System.Reflection.Assembly,System.String) 位于Microsoft.TeamFoundation.Client.TfsConnection.GetServiceInstance(System.Type,System.Object) 位于Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.GetServiceInstance(System.Type,System.Object) 位于Microsoft.TeamFoundation.Client.TfsConnection.GetService(System.Type) 在Microsoft.TeamFoundation.Client.TfsConnection.GetService[System.\uu Canon,mscorlib,版本=4.0.0.0,区域性=neutral,PublicKeyToken=b77a5c561934e089] 在Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPackage.get_WorkItemStore()上 位于Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPackage.DoUpdateContext(Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.RefreshReason、System.ComponentModel.CancelEventArgs) 在Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPackage.b_u_0(System.Object,Microsoft.TeamFoundation.MVVM.QueuedCommandExecuteEventArgs) 位于Microsoft.TeamFoundation.MVVM.QueuedCommandWorker.DoWork(System.Object、System.ComponentModel.CancelEventArgs) 位于Microsoft.TeamFoundation.Common.Internal.TfsBackgroundWorkerManager.worker_DoWork(System.Object、System.ComponentModel.DoworkerVentargs) 位于System.ComponentModel.BackgroundWorker.OnDoWork(System.ComponentModel.DoWorkEventArgs) 位于System.ComponentModel.BackgroundWorker.WorkerThreadStart(System.Object) 在System.Runtime.Remoting.Messaging.StackBuilderSink.\u PrivateProcessMessage(IntPtr,System.Object[],System.Object,System.Object[]ByRef) 在System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage,System.Runtime.Remoting.Messaging.IMessageSink) at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object) 在System.Threading.QueueUserWorkItemCallback.WaitCallback_上下文(System.Object)中 位于System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值) 在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值) 位于System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()处 在System.Threading.ThreadPoolWorkQueue.Dispatch()中 在System.Threading.\u ThreadPoolWaitCallback.PerformWaitCallback()中 大宗报价

我运行了devenv/resetuserdata并重新安装了pir,但这没有帮助。如果我没有连接到TFS,它可以正常工作。我还能够连接到TFS的其他实例


任何帮助都将不胜感激。谢谢。

我的本地AppData文件夹中的文件似乎已损坏。尝试删除它们,但没有帮助。通过执行以下操作解决了此问题

  • 卸载Visual Studio 2013
  • 卸载TFS 2013电动工具
  • 手动删除Visual Studio安装目录和所有 来自注册表的引用
  • 重新安装Visual Studio 2013及以后的版本 Visual Studio 2014更新4
  • 重新安装TFS 2013电动工具

  • 在从VS 2013升级到VS 2015之后,我刚刚出现了完全相同的症状。每次我打开到TFS的连接或具有TFS链接的项目时,它都会崩溃VS2015(即使使用更新1)

    我找到了一种在VS2015中修复崩溃的方法,无需重新安装

  • 关闭VS2015
  • 对于VS2015和TFS 2015-删除此目录的内容: C:\Users\yourUserId\AppData\Local\Microsoft\Team Foundation\6.0\Cache(我认为6.0代表TFS 2015)
  • 然后重新启动VisualStudio

  • 我相信VS2013也会如此(但如果您使用的是较旧的TFS,则将6.0替换为5.0(TFS 2013?),4.0(TFS 2010?)

    我在删除文件时遇到问题,但重新启动了我的计算机,删除了文件,然后错误消失了。我在尝试“获取最新版本”时收到了它