Visual studio 2017 VS2017在解决方案上启动实时单元测试集后引发未知错误

Visual studio 2017 VS2017在解决方案上启动实时单元测试集后引发未知错误,visual-studio-2017,live-unit-tests,Visual Studio 2017,Live Unit Tests,我已经安装了VS2017 Enterprise。我们现有的解决方案很少,但效果很好。然后,我尝试为其中一个解决方案启用实时单元测试,但它因未知错误而崩溃。在此之后,每次尝试启动Visual Studio(注意:不是解决方案)都失败,出现未知错误。我们正在使用XUnit2.2.0进行单元测试。以下是我在事件查看器中找到的内容 Application: devenv.exe Framework Version: v4.0.30319 Description: The application requ

我已经安装了VS2017 Enterprise。我们现有的解决方案很少,但效果很好。然后,我尝试为其中一个解决方案启用实时单元测试,但它因未知错误而崩溃。在此之后,每次尝试启动Visual Studio(注意:不是解决方案)都失败,出现未知错误。我们正在使用XUnit2.2.0进行单元测试。以下是我在事件查看器中找到的内容

Application: devenv.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: StreamJsonRpc.RemoteInvocationException: Request locate failed with message: Cannot find service module info file '*/emitService.servicehub.service.json' in 'E:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\ServiceHub\Services', using discovery services failed: VsixServiceDiscovery: ExternalSettingsManager::GetScopePaths failed to initialize PkgDefManager for E:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.GetScopePaths(String applicationPath, String suffixOrName, String vsVersion, Boolean isLogged, Boolean isForIsolatedApplication)
   at Microsoft.VisualStudio.Settings.ExternalSettingsManager.CreateForApplication(String applicationPath, IInteropLogger logger)
   at Microsoft.ServiceHub.VsixServiceDiscovery.DiscoveryService.EnumerateContentLocations()
   at Microsoft.ServiceHub.VsixServiceDiscovery.DiscoveryService.EnsureServiceModulesEnumerated()
   at Microsoft.ServiceHub.VsixServiceDiscovery.DiscoveryService.discoverService(String serviceName)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__56`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.ServiceHub.Client.HubClient.<LocateServiceAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.ServiceHub.Client.HubClient.<RequestServiceChannelNameAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.ServiceHub.Client.HubClient.<RequestServiceAsync>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.LanguageServices.Remote.ServiceHubRemoteHostClient.<RequestServiceAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
Stack:
   at System.Environment.FailFast(System.String, System.Exception)
   at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
   at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception)
   at Microsoft.VisualStudio.LanguageServices.Remote.ServiceHubRemoteHostClient+<RequestServiceAsync>d__11.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.FinishContinuations()
   at System.Threading.Tasks.Task.FinishStageThree()
   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetResult(System.Threading.Tasks.VoidTaskResult)
   at System.Threading.Tasks.Task+DelayPromise.Complete()
   at System.Threading.Tasks.Task+<>c.<Delay>b__274_1(System.Object)
   at System.Threading.TimerQueueTimer.CallCallbackInContext(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()
   at System.Threading.TimerQueue.AppDomainTimerCallback()
应用程序:devenv.exe
框架版本:v4.0.30319
描述:应用程序通过System.Environment.FailFast(字符串消息)请求进程终止。
消息:StreamJsonRpc.RemoteInvocationException:请求定位失败,消息为:在“E:\Program Files(x86)\Microsoft Visual Studio\2017\Enterprise\Common7\servicehub\Services”中找不到服务模块信息文件“*/emitService.servicehub.service.json”,使用发现服务失败:VsixServiceDiscovery:ExternalSettingsManager::GetScopePaths未能初始化E:\Program Files(x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe的PkgDefManager
位于Microsoft.VisualStudio.Settings.ExternalSettingsManager.GetScopePath(字符串应用程序路径、字符串后缀名、字符串vsVersion、布尔IsLoged、布尔isForIsolatedApplication)
在Microsoft.VisualStudio.Settings.ExternalSettingsManager.CreateForApplication(字符串应用程序路径,iInteropeLogger记录器)中
在Microsoft.ServiceHub.VsixServiceDiscovery.DiscoveryService.EnumerateContentLocations()上
在Microsoft.ServiceHub.VsixServiceDiscovery.DiscoveryService.EnsureReserveCModulesEnumerated()上
位于Microsoft.ServiceHub.VsixServiceDiscovery.DiscoveryService.discoverService(字符串serviceName)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(任务任务)
在StreamJsonRpc.JsonRpc.d_u56`1.MoveNext()处
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.VisualStudio.Threading.ThreadingTools.d_u9`1.MoveNext()上
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.ServiceHub.Client.HubClient.d_u39.MoveNext()中
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.ServiceHub.Client.HubClient.d_u25.MoveNext()中
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.ServiceHub.Client.HubClient.d_u28.MoveNext()上
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.VisualStudio.LanguageServices.Remote.ServiceHubRemoteHostClient.d_u11.MoveNext()上
---来自引发异常的上一个位置的堆栈结束跟踪---
位于Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(exceptionObject)
堆栈:
在System.Environment.FailFast(System.String,System.Exception)中
在Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)中
在Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report中(System.Exception,System.Action`1)
在Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCancelled上(System.Exception)
在Microsoft.VisualStudio.LanguageServices.Remote.ServiceHubRemoteHostClient+d_u11.MoveNext()中
在System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(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.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()中
位于System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action,布尔值,System.Threading.Tasks.Task ByRef)
在System.Threading.Tasks.Task.FinishContinuations()中
在System.Threading.Tasks.Task.FinishStageThree()中
在System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult,mscorlib,版本=4.0.0.0,区域性=neutral,PublicKeyToken=b77a5c561934e089]]处。TrySetResult(System.Threading.Tasks.VoidTaskResult)
在System.Threading.Tasks.Task+DelayPromise.Complete()中
在System.Threading.Tasks.Task+c.b__274_1(System.Object)中
位于System.Threading.TimerQueueTimer.CallbackInContext(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.TimerQueueTimer.CallCallback()中
在System.Threading.TimerQueueTimer.Fire()中
在System.Threading.TimerQueue.FireNextTimers()上
在System.Threading.TimerQueue.AppDomainTimerCallback()中
任何帮助都将不胜感激

谢谢。

关闭了所有实例