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:
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)
- 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.
- Tried installing chocolatey via the official way, it returned it is already installed
- Tried installing
sdionot as an administrator, aborted, then did it as admin - Installed
chocolateygui, I never managed to launch it - Tried
choco upgrade chocolateygui -y --forceandchoco upgrade chocolatey -y --force, didn’t work - Checked
AppData\Local\Chocolatey GUIis 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)
Just wanted to add my twopence here: I landed on that page when I had the same issue.
A reinstall of
chocolateyguidit nothing.I forced a reinstall with
choco install chocolatey --forceand that fixed it.I then noticed that the
chocolateyguipackage version was2.0.0.0while thechocolateypackage (before the force reinstall) was1.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 --forcealso 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 atC:\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.exeorchoco.exeas the cause.