VS 2022 17.8.1 Could not start visual studio due to an error. Microsoft.Servicehub.Client.ControllerConnectionException Controller terminated before accepting connection

Gazi Keskin 20 Reputation points

************* Preparing the environment for Debugger Extensions Gallery repositories **************
   ExtensionRepository : Implicit
   UseExperimentalFeatureForNugetShare : false
   AllowNugetExeUpdate : false
   AllowNugetMSCredentialProviderInstall : false
   AllowParallelInitializationOfLocalRepositories : true

   -- Configuring repositories
      ----> Repository : LocalInstalled, Enabled: true
      ----> Repository : UserExtensions, Enabled: true

>>>>>>>>>>>>> Preparing the environment for Debugger Extensions Gallery repositories completed, duration 0.000 seconds

************* Waiting for Debugger Extensions Gallery to Initialize **************

>>>>>>>>>>>>> Waiting for Debugger Extensions Gallery to Initialize completed, duration 0.031 seconds
   ----> Repository : UserExtensions, Enabled: true, Packages count: 0
   ----> Repository : LocalInstalled, Enabled: true, Packages count: 36

Microsoft (R) Windows Debugger Version 10.0.25877.1004 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Loading Dump File [C:\CrashDumps\devenv.exe.9760.dmp]
User Mini Dump File with Full Memory: Only application data is available

Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 19045 MP (8 procs) Free x64
Product: WinNt, suite: SingleUserTS
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Debug session time: Wed Nov 29 23:20:09.000 2023 (UTC + 3:00)
System Uptime: 0 days 0:03:38.955
Process Uptime: 0 days 0:00:54.000
Loading unloaded module list
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(2620.1eb0): CLR exception - code e0434352 (first/second chance not available)
For analysis of this file, run !analyze -v
00007ff8`6f14db34 c3              ret
0:000> !analyze -v
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *

*** WARNING: Unable to verify checksum for Microsoft.ServiceHub.Client.ni.dll
*** WARNING: Unable to verify checksum for Microsoft.Developer.IdentityService.Client.ni.dll
*** WARNING: Unable to verify timestamp for msenvmui_brand_7D0_0.dll
DEBUG_FLR_EXCEPTION_CODE(80131509) and the ".exr -1" ExceptionCode(e0434352) don't match


    Key  : Analysis.CPU.mSec
    Value: 440530

    Key  : Analysis.Elapsed.mSec
    Value: 691606

    Key  : Analysis.IO.Other.Mb
    Value: 47

    Key  : Analysis.IO.Read.Mb
    Value: 1

    Key  : Analysis.IO.Write.Mb
    Value: 151

    Key  : Analysis.Init.CPU.mSec
    Value: 6140

    Key  : Analysis.Init.Elapsed.mSec
    Value: 864085

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 765

    Key  : CLR.BuiltBy
    Value: NET48REL1LAST_B

    Key  : CLR.Engine
    Value: CLR

    Key  : CLR.Exception.Microsoft.ServiceHub.Client.ControllerConnectionException._message
    Value: Controller terminated before accepting connections. Exit code: -532462766.

    Key  : CLR.Exception.Type
    Value: Microsoft.ServiceHub.Client.ControllerConnectionException

    Key  : CLR.Version
    Value: 4.8.4645.0

    Key  : Failure.Bucket
    Value: CLR_EXCEPTION_Microsoft.ServiceHub.Client.ControllerConnectionException_80131509_msenvmui_brand_7D0_0.dll!Unloaded

    Key  : Failure.Hash
    Value: {e2fba219-0313-9608-c153-3e5298a6c6b8}

    Key  : Timeline.OS.Boot.DeltaSec
    Value: 218

    Key  : Timeline.Process.Start.DeltaSec
    Value: 54

    Key  : WER.OS.Branch
    Value: vb_release

    Key  : WER.OS.Version
    Value: 10.0.19041.1

    Key  : WER.Process.Version
    Value: 17.8.34322.80

FILE_IN_CAB:  devenv.exe.9760.dmp





CONTEXT:  000000855f90a540 -- (.cxr 0x855f90a540)
rax=0000000000000000 rbx=0000026e7ae770f0 rcx=0000000000000002
rdx=0000000000000002 rsi=0000000000000000 rdi=0000026e7ce84870
rip=00007ff860eb8a68 rsp=00007ff860e8a89d rbp=00007ff860ccaef0
 r8=0000026efdb8c338  r9=0000008e00000001 r10=0000adbb3c20454c
r11=fffffffffffffffe r12=0000000000000000 r13=0000026efe227e08
r14=0000000000004000 r15=0000000000000002
iopl=0         nv up di pl nz na pe nc
cs=ffff  ss=0000  ds=ffff  es=ffff  fs=ffff  gs=0000             efl=00000000
00007ff8`60eb8a68 90              nop
Resetting default scope

ExceptionAddress: 00007ff86caccf19 (KERNELBASE!RaiseException+0x0000000000000069)
   ExceptionCode: e0434352 (CLR exception)
  ExceptionFlags: 00000001
NumberParameters: 5
   Parameter[0]: ffffffff80131509
   Parameter[1]: 0000000000000000
   Parameter[2]: 0000000000000000
   Parameter[3]: 0000000000000000
   Parameter[4]: 00007ff860cc0000

PROCESS_NAME:  devenv.exe



ADDITIONAL_DEBUG_TEXT:  Followup set based on attribute [UnloadedModule_Arch_SI] from Frame:[0] on thread:[1eb0] ; Followup set based on attribute [Is_ChosenCrashFollowupThread] from Frame:[0] on thread:[PSEUDO_THREAD]

IP_ON_HEAP:  9090909090c35f5c
The fault address in not in any loaded module, please check your build's rebase
log at <releasedir>\bin\build_logs\timebuild\ntrebase.log for module which may
contain the address if it were loaded.


UNALIGNED_STACK_POINTER:  00007ff860e8a89d

00000000`00000000 00000000`00000000 msenvmui_brand_7D0_0.dll!Unloaded+0x0

SYMBOL_NAME:  msenvmui_brand_7D0_0.dll!Unloaded+0

MODULE_NAME: msenvmui_brand_7D0_0

IMAGE_NAME:  msenvmui_brand_7D0_0.dll

STACK_COMMAND:  !C:\ProgramData\Dbg\sym\SOS_AMD64_AMD64_4.8.4645.00.dll\648F6F63b34000\SOS_AMD64_AMD64_4.8.4645.00.dll.pe 0x26efdb8c2e8 ; .ecxr ; ~~[0x1eb0]s ; .frame 0 ; ** Pseudo Context ** ManagedPseudo ** Value: ffffffff ** ; kb

FAILURE_BUCKET_ID:  CLR_EXCEPTION_Microsoft.ServiceHub.Client.ControllerConnectionException_80131509_msenvmui_brand_7D0_0.dll!Unloaded

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release


OSNAME:  Windows 10

FAILURE_ID_HASH:  {e2fba219-0313-9608-c153-3e5298a6c6b8}

Followup:     MachineOwner
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,165 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,879 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,010 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 27,816 Reputation points Microsoft Vendor

    Hi @Gazi Keskin

    Welcome to Microsoft Q&A! 

    Do you have the Arellia privilege management software installed on your machine? 

    We received the same feedback from other users before. It may be a potential issue with the VS2022. Could you update your VS2022 to the latest version 17.8.2 and check if it is fixed?

    If it persists, please report a problem to product team through Visual Studio. It will include the necessary dumps and information to figure it out. 

    After you post it there, please kindly share the post link here so that someone who meets the same issue can refer to it. 

    Thanks for your understanding! 



    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful