我们多年来一直在这台机器(服务器 2003)上使用 vs 2010,现在 Visual Studio 刚开始在启动时崩溃。根本没有办法运行它,它每次都会崩溃。
我试过 Devenv.exe /SafeMode、resetsettings 等,结果相同。我试过重新安装vs2010,我试过卸载它并重新安装,同样的事情。
事件日志说它与团队基础服务器有关:
EventType clr20r3、P1 devenv.exe、P2 10.0.30319.1、P3 4ba1fab3、P4 microsoft.teamfoundation.common、P5 10.0.0.0、P6 502e379e、P7 4b6、P8 45、P9 system.missingmethodexception、P10 NIL。
堆栈跟踪也有错误:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.MissingMethodException
Stack:
at Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost+AuthenticateWorker.WorkCompleted(System.Object, System.Object, System.ComponentModel.AsyncCompletedEventArgs)
at Microsoft.TeamFoundation.Common.TfsBackgroundWorkerManager.worker_RunWorkerCompleted(System.Object, System.ComponentModel.RunWorkerCompletedEventArgs)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(System.ComponentModel.RunWorkerCompletedEventArgs)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.runTryCode(System.Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
我们确实使用了 TFS,并且没有遇到任何问题。
关于为什么会发生这种情况的任何想法,更重要的是,我该如何解决这个问题?如果没有 tfs 组件,似乎没有任何方法可以启动 Visual Studio,无论如何我们都需要 tfs。