VS2022 v17.8.4 Crashing when opening solution as administrator, error "The ‘GlobalHubClientPackage’ package did not load correctly."

26331489 15 Reputation points
2024-01-10T16:52:18.1566667+00:00

Upon upgrade to VS2022 Professional version 17.8.4, when running VS as an administrator and opening a solution file, VS throws an error message stating: "The ‘GlobalHubClientPackage’ package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file ‘C:\Users\6031080\AppData\Roaming\Microsoft\VisualStudio\17.0_5fc74e17\ActivityLog.xml’ Restarting Visual Studio could help to resolve this issue."

If Yes option is selected in error dialog, VS throws two additional error that Feature 'Process telemetry' is currently unavailable due to an error and that the 'VSPackage' package did not load correctly. The application then crashes.

  • This issue is not present when opening a solution as a regular non-admin user
  • Checked C:\ProgramData\Microsoft\VisualStudio\Packages, the 'GlobalHubClientPackage' is not present
  • Restarting VS and machine has no effect
  • Attempted two repairs and full reinstallation of v17.8.4 with no effect

Error details from ActivityLog.xml related to GlobalHubClientPackage is complaining about SetSite failing for the package due to the controller terminating, causing my user to be logged out:

  <entry>
    <record>410</record>
    <time>2024/01/10 16:33:38.231</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [GlobalHubClientPackage]Source: &apos;Microsoft.ServiceHub.Client&apos; Description: Controller terminated before accepting connections. Exit code: -532462766.&#x000D;&#x000A;</description>
    <guid>{11AD60FC-6D87-4674-8F88-9ABE79176CBE}</guid>
    <hr>0x80131509</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>411</record>
    <time>2024/01/10 16:33:39.147</time>
    <type>Error</type>
    <source>GetIdeUserContextAsync</source>
    <description>Microsoft.ServiceHub.Client.ControllerConnectionException: Controller terminated before accepting connections. Exit code: -532462766.&#x000D;&#x000A;   at Microsoft.ServiceHub.Client.HubControllerClient.&lt;StartAsync&gt;d__6.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.ServiceHub.Client.HubClient.&lt;LaunchOrFindControllerAsync&gt;d__53.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.ServiceHub.Client.HubClient.&lt;GetLocationServiceAsync&gt;d__55.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.&lt;ExecuteAsync&gt;d__0`1.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.&lt;ExecuteAsync&gt;d__0`1.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.ServiceHub.Client.HubClient.&lt;GetThisAsRemoteServiceBrokerAsync&gt;d__66.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.ServiceHub.Client.HubClient.&lt;&lt;Reset&gt;b__58_0&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.AsyncLazy`1.&lt;&gt;c__DisplayClass16_0.&lt;&lt;GetValueAsync&gt;b__0&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.ServiceHub.Client.HubClient.&lt;GetPipeAsync&gt;d__38.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;HookJsonRpcAsync&gt;d__9.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;HookJsonRpcAsync&gt;d__9.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;GetReconnectionTaskAsync&gt;d__5.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.PipeManager.&lt;RepairConnectionAsync&gt;d__18.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;InitializeAsync&gt;d__7.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;CreateAsync&gt;d__4.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.&lt;InitializeAsync&gt;d__14.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.&lt;CreateAsync&gt;d__13.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.AccountManager.&lt;GetStoreAsync&gt;d__31.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserContext.&lt;AdjustSignInStatusAsync&gt;d__11.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage.&lt;GetIdeUserContextAsync&gt;d__12.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;HookJsonRpcAsync&gt;d__9.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;GetReconnectionTaskAsync&gt;d__5.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.PipeManager.&lt;RepairConnectionAsync&gt;d__18.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.&lt;InitializeAsync&gt;d__7.MoveNext()</description>
  </entry>
  <entry>
    <record>412</record>
    <time>2024/01/10 16:33:39.155</time>
    <type>Information</type>
    <source>RoamingManagerPackage</source>
    <description>User logged out</description>
  </entry>
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. 26331489 15 Reputation points
    2024-01-11T17:16:05.0066667+00:00

    Found the issue here, the GlobalHubClientPackage permissions issue with was related to user permissions managed by my organization's privilege management software. Resolved the permissions issue with them, repaired VS through the installer, and then following restart VS v17.8.4 opened without issue. Thank you for your assistance Tianyu Sun.

    2 people found this answer helpful.

  2. Tianyu Sun-MSFT 34,806 Reputation points Microsoft External Staff
    2024-01-11T08:07:52.28+00:00

    Hello @Masso, Ryan (TR Technology),

    Welcome to Microsoft Q&A forum.

    This issue is not present when opening a solution as a regular non-admin user.

    Attempted two repairs and full reinstallation of v17.8.4 with no effect.

    The error message in ActivityLog.xml file and the above information indicate that this issue is related to permissions.

    Is there any special application installed on your machine, like privilege management software. If so, (if possible) please try to disable/uninstall them temporarily and test again.

    Besides, is there any permission limitation on your machine?

    Sincerely,

    Tianyu


    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.


  3. Bhogyari, Karunakar (KGS) 0 Reputation points
    2024-06-10T14:49:00.6+00:00

    Hi Team,
    I am also facing the same issue in visual studio 2022 17.10.1

    "SetSite failed for package [GlobalHubClientPackage]Source: 'System.Core' Description: Access to the path is denied. System.UnauthorizedAccessException: Access to the path is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Pipes.NamedPipeClientStream.ConnectInternal(Int32 timeout, CancellationToken cancellationToken, Int32 startTime) at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at "

    Can you please help me.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.