最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net - Visual Studio 2022 Preview crashes on startup: “Controller terminated before accepting connections” - Stack Overflow

programmeradmin3浏览0评论

I recently downloaded Visual Studio Preview (version 17.14.0 Preview 2.0). However, when I tried to launch it, I encountered an error during startup. The error message appears immediately after the splash screen, and I'm not sure how to resolve it. Has anyone else experienced this issue, or could you provide some advice on how to fix it?(I have attempted to update to the latest version and clean the ServiceHub cache, but the issue persists)

Microsoft.ServiceHub.Client.ControllerConnectionException:
Controller terminated before accepting connections. Exit code: -1073740791

bolow is error in ActivityLog.xml:

71    End package load [Visual Studio Web Browser Package]  {E8B06F41-6D01-11D2-AA7D-00C04F990343}    VisualStudio   2025/03/14 08:59:04.164
72    End package load [IdentityServicePackage] {C35E0ABB-7F17-447F-B054-7B73D6D7581D}    VisualStudio   2025/03/14 08:59:04.481
73 ERROR Microsoft.ServiceHub.Client.ControllerConnectionException: Controller terminated before accepting connections. Exit code: -1073740791.
   在 Microsoft.ServiceHub.Client.HubControllerClient.<StartAsync>d__5.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.ServiceHub.Client.HubClient.<LaunchOrFindControllerAsync>d__58.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   在 Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass20_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.ServiceHub.Client.HubClient.<GetLocationServiceAsync>d__60.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.<ExecuteAsync>d__0`1.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.<ExecuteAsync>d__0`1.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   在 Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass20_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__8`1.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.ServiceHub.Client.HubClient.<GetThisAsRemoteServiceBrokerAsync>d__71.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.ServiceHub.Client.HubClient.<<ResetCore>b__63_0>d.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   在 Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass20_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.ServiceHub.Client.HubClient.<GetPipeAsync>d__39.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<HookJsonRpcAsync>d__10.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<HookJsonRpcAsync>d__10.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<GetReconnectionTaskAsync>d__6.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.Developer.IdentityService.PipeManager.<RepairConnectionAsync>d__18.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<InitializeAsync>d__8.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<CreateAsync>d__5.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.<InitializeAsync>d__18.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.<CreateAsync>d__17.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.Developer.IdentityService.AccountManager.<GetStoreAsync>d__33.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserContext.<AdjustSignInStatusAsync>d__11.MoveNext()
--- End of stack trace from the previous location where the exception was thrown ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage.<AdjustSignInStatusAsync>d__7.MoveNext() 

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论