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.
VS2022 v17.8.4 Crashing when opening solution as administrator, error "The ‘GlobalHubClientPackage’ package did not load correctly."
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: 'Microsoft.ServiceHub.Client' Description: Controller terminated before accepting connections. Exit code: -532462766.
</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.
 at Microsoft.ServiceHub.Client.HubControllerClient.<StartAsync>d__6.MoveNext()
--- 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 Microsoft.ServiceHub.Client.HubClient.<LaunchOrFindControllerAsync>d__53.MoveNext()
--- 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 Microsoft.ServiceHub.Client.HubClient.<GetLocationServiceAsync>d__55.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.<ExecuteAsync>d__0`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.ServiceHub.Utility.Shared.ServiceHubRetry.<ExecuteAsync>d__0`1.MoveNext()
--- 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 Microsoft.ServiceHub.Client.HubClient.<GetThisAsRemoteServiceBrokerAsync>d__66.MoveNext()
--- 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 Microsoft.ServiceHub.Client.HubClient.<<Reset>b__58_0>d.MoveNext()
--- 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 Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
 at Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass16_0.<<GetValueAsync>b__0>d.MoveNext()
--- 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 Microsoft.ServiceHub.Client.HubClient.<GetPipeAsync>d__38.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<HookJsonRpcAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<HookJsonRpcAsync>d__9.MoveNext()
--- 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 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<GetReconnectionTaskAsync>d__5.MoveNext()
--- 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 Microsoft.Developer.IdentityService.PipeManager.<RepairConnectionAsync>d__18.MoveNext()
--- 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 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<InitializeAsync>d__7.MoveNext()
--- 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 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<CreateAsync>d__4.MoveNext()
--- 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 Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.<InitializeAsync>d__14.MoveNext()
--- 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 Microsoft.Developer.IdentityService.StorageService.StorageServiceClient.<CreateAsync>d__13.MoveNext()
--- 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 Microsoft.Developer.IdentityService.AccountManager.<GetStoreAsync>d__31.MoveNext()
--- 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 Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserContext.<AdjustSignInStatusAsync>d__11.MoveNext()
--- 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 Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserPackage.<GetIdeUserContextAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<HookJsonRpcAsync>d__9.MoveNext()
--- 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 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<GetReconnectionTaskAsync>d__5.MoveNext()
--- 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 Microsoft.Developer.IdentityService.PipeManager.<RepairConnectionAsync>d__18.MoveNext()
--- 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 Microsoft.Developer.IdentityService.ServiceBrokerPipeManager.<InitializeAsync>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
3 answers
Sort by: Most helpful
-
-
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.
-
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.