[英]Visual Studio 2013 crashing when connecting to TFS
我今天早上开始收到这个例外。 不知道是什么原因引起的或如何解决。 当我启动Visual Studio并连接到我们的开发TFS实例时,它会失败,但出现以下异常:“ Microsoft Visual Studio 2013已停止工作”。 从事件查看器获得以下信息
应用程序:devenv.exe框架版本:v4.0.30319说明:该进程由于未处理的异常而终止。 异常信息:System.AccessViolationException堆栈:在Microsoft.TeamFoundation.WorkItemTracking处为Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DataStoreNative.FinishDataStoreInit(IntPtr,Int32,Int32,Int32,System.String,System.String,System.String)。 Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()的Client.DataStore.Datastore.FinishDataStoreInit(Int32,Int32,Int32,System.String,System.String,System.String)在Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.InitializeTeamFoundationObject(System.String,System.Object)处的Microsoft.TeamFoundation.Client.ITfsTeamProjectCollectionObject.Initialize(Microsoft.TeamFoundation.Client.TfsTeamProjectCollection) Microsoft.TeamFoundation.Client.TfsConnection.GetServiceInstance(System.Type,System.Object)中的.Reflection.Assembly,System.String) ),位于Microsoft.TeamFoundation.Client.TfsConnection.GetService [System .__ Canon,Microsoft.TeamFoundation.Client.TfsConnection.GetService(System.Type),位于Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.GetServiceInstance(System.Type,System.Object) mscorlib,版本= 4.0.0.0,文化=中性,PublicKeyToken = b77a5c561934e089],位于Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPackage.get_WorkItemStore(),位于Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPackage.DoUpdateContext(Microsoft.TeamFoundation.Controls.WPF Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPackage.b__0(System.Object,Microsoft.TeamFoundation.MVVM.QueuedCommandExecuteEventArgs)(Microsoft.TeamFoundation.MVVM.QueuedCommandWorker.DoWork(System.Object)上的.TeamExplorer.RefreshReason,System.ComponentModel.CancelEventArgs) Microsoft.TeamFoundation.Common.Internal.TfsBackgroundWorkerManager.worker_DoWork(System.Object,System.ComponentModel)中的System.ComponentModel.CancelEventArgs)。 在System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr,System.Object []的System.ComponentModel.BackgroundWorker.OnDoWork(System.ComponentModel.DoWorkEventArgs)在System.ComponentModel.BackgroundWorker.WorkerThreadStart(System.Object) ,System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage,System.Runtime.Remoting.Messaging.IMessageSink)处的System.Object,System.Object [] ByRef)。 Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(System.Object)在System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)在System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object, Boolean)在System.Threading.QueueUserWorkItemCallback.System.Threading.I处运行(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔值) System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()处System.Threading.ThreadPoolWorkQueue.Dispatch()处的ThreadPoolWorkItem.ExecuteWorkItem()
我运行了devenv / resetuserdata并重新安装了该安装程序,但这没有帮助。 如果我没有连接到TFS,它就可以正常工作。 我也能够连接到TFS的其他实例。
任何帮助将非常感激。 谢谢。
从VS 2013升级后,我在VS 2015中的症状完全相同。每次我打开与TFS的连接或具有TFS链接的项目时,VS2015都会崩溃(即使使用Update 1)
我找到了一种无需重新安装即可解决VS2015中崩溃问题的方法。
我相信这与VS2013相同(但是,如果您使用的是较旧的TFS,则将6.0替换为5.0(TFS 2013?),4.0(TFS 2010?)
看来我的本地AppData文件夹中的文件已损坏。 试图删除它们,但没有帮助。 通过执行以下操作解决了该问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.