Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an
unhandled exception.
Exception Info: System.TypeLoadException
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserContext+d__56.MoveNext()
at
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon,
mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089]].Start[[Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserContext+d__56,
Microsoft.VisualStudio.Shell.Connected, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a]](d__56 ByRef)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserContext.GetProfileSessionTokenCredentialsAsync(Boolean,
System.Threading.CancellationToken)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserContext+d__54.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession+d__48.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession+d__37.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserSession+d__54.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.VsOnlineSettings+d__29.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.VsOnlineSettings+d__28.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Shell.Connected.ConnectedUser.VsOnlineSettings+d__25.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Services.Roaming.TfsServer+d__15.MoveNext()
at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at
Microsoft.VisualStudio.Services.Roaming.RoamingProfileManager+d__12.MoveNext()
While most of the error stack meant nothing much, couple of things stood out (highlighted above). It seemed that the team explorer component of Visual Studio was causing the crash when trying to connect to a VSTS as soon as VS was launched.
So how do we prove that it is the Team Explorer component that is causing the crash? Simple. Disconnect the machine from Network i.e. turn off Wi-Fi and remove LAN cable. Now when we launched the VS, it did not crash. Moreover, we had a repro step now. Turn on the Wi-Fi and launch VS and it would crash. Turn off the Wi-Fi and launch VS and it would work fine. In fact, we could turn on the Wi-Fi once VS is launched successfully and things wouldn't crash.
Is there anything else we could do to fix this permanently? We removed the VS profiles from visual studio i.e. turn off Wi-Fi, launch VS, go to account setting, remove the accounts.
Wow, that was it? Worked like a charm. Thank you.
ReplyDelete