Visual Studio 2022 (v17.8.4) Crashes with 'GlobalHubClientPackage' Error When Opened as Administrator.

Larron Webb 0 Reputation points
2024-10-09T23:31:22.87+00:00

m trying to open a solution in Visual Studio 2022 (v17.8.4) as an administrator; however, it crashes with the error: "The ‘GlobalHubClientPackage’ package did not load correctly."Troubleshooting Steps Taken:

  • Updated through the Visual Studio Installer.
  • Uninstalled Visual Studio 2022 and the installer.
  • Disabled my virus scan software.

Desired Outcome: I would like to successfully open Visual Studio without encountering this error.

Environment: Windows 10 Pro Build 19045.5011

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,456 Reputation points Microsoft External Staff
    2024-10-10T06:49:16.4033333+00:00

    Hello @Larron Webb ,

    Welcome to Microsoft Q&A forum.

    Please try following three steps and let us know if it works:

    1. Rename(rename to any name, for example ComponentModelCache_backup) or remove this folder => C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_xxxxxxxx\ComponentModelCache.
    2. Search and open Developer Command Prompt for VS 2022 in Windows Search box, run devenv /ResetSettings command to reset VS settings.
    3. Open VS Installer, click More, Repair, to repair VS 2022. After repairing VS 2022, open VS 2022 again, see if this works.

    Besides, does this issue appear if you don’t launch VS as administrator(launch VS with non-admin account)?


    Update1:

    If above three steps don't work, please try following:

    1. Keep VS and VS Installer closed, rename C:\Users\username\AppData\Local\Microsoft\VisualStudio folder to VisualStudio_backup, reboot your machine, rename C:\Users\username\AppData\Local\Temp folder and launch VS again.
    2. Update Windows OS.
    3. Open CMD as administrator, run DISM.exe /Online /Cleanup-image /Restorehealth, after it finishes running, run sfc /scannow.
    4. Try to install and use the latest version of VS 2022.

    Best Regards,

    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.


Your answer

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