ChocolateyGUI: Unable to load Chocolatey GUI assembly. Type initiator exception 'ChocolateyGui.Common.Windows.Bootstrapper'

What You Are Seeing?

When I launch Chocolatey GUI from start menu or powershell (admin), after an UAC prompt I see: obraz When I click ok, I the same prompt appears, and I need to close like 8 windows for it to disappear.

What is Expected?

GUI should just launch, or at least some more detailed error on the terminal.

How Did You Get This To Happen? (Steps to Reproduce)

  1. I run the Windows install script for https://github.com/black7375/Firefox-UI-Fix . I run it many times previously on other devices, but there I had choco already installed. Here on this fresh install I did it before manually installing choco.
  2. Tried installing chocolatey via the official way, it returned it is already installed
  3. Tried installing sdio not as an administrator, aborted, then did it as admin
  4. Installed chocolateygui, I never managed to launch it
  5. Tried choco upgrade chocolateygui -y --force and choco upgrade chocolatey -y --force, didn’t work
  6. Checked AppData\Local\Chocolatey GUI is empty

System Details

  • OS Build (In PowerShell run [System.Environment]::OSVersion.version.tostring()): 10.0.22000.0 (Windows 11 Home 22000)
  • Windows PowerShell version (Run: $PSVersionTable): 5.1.22000.832
  • Chocolatey version (Run choco --version): 1.1.0

Output Log

No output log when launching the GUI

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

Just wanted to add my twopence here: I landed on that page when I had the same issue.
A reinstall of chocolateygui dit nothing.

I forced a reinstall with choco install chocolatey --force and that fixed it.

I then noticed that the chocolateygui package version was 2.0.0.0 while the chocolatey package (before the force reinstall) was 1.3.1.
After the reinstall it matches the GUI version and everything works.

No idea what happened to make the main package go out of sync.

I can also confirm that choco install chocolatey --force also fixed the same issue for me.

This is the second PC I had this happen on. All started after running Update all from Chocolateygui. Chocolatey gets updated, gui closes, wont launch again. even after trying to also update chocolateygui from chocolateycli.

Thanks for the confirmation @JacekJagosz, it’s unfortunate we weren’t able to get to the root of the issue, but at least we got it solved.

@JacekJagosz Could you confirm if there are any logs at C:\ProgramData\Chocolatey GUI\Logs? And if there’s a directory at C:\ProgramData\Chocolatey GUI\Config? If the Config directory doesn’t exist, you could try creating it. I’ve noticed that if the Config directory isn’t there it doesn’t launch at least for the debugger, and never delved too far into what caused it at the time.

Another place to look for clues is the Event Viewer under Windows Logs > Application. You may see Error level entries from a Source of either Application Error, or .NET Runtime. In either entry it should state ChocolateyGui.exe or choco.exe as the cause.