question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
R4cOOncommented, Jun 24, 2023

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.

1reaction
GsynthChriscommented, Jul 9, 2023

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[bug] "Unable to load Chocolatey GUI assembly" after ...
Unable to load Chocolatey GUI assembly. 'ChocolateyGui.Common.Windows.Bootstrapper' 的初始設定式發生例外狀況。
Read more >
Chocolatey Software Docs | Troubleshooting
If you see this error when attempting to download Chocolatey CLI or any other packages from the Chocolatey Community Repository, you are likely...
Read more >
Chocolatey Software Docs | Known Issues
If step 1 did not fix the issue, please check that your antivirus software is not blocking the Chocolatey GUI Config from being...
Read more >
Chocolatey GUI 2.1.0
Chocolatey is software management automation for Windows that wraps ... To install Chocolatey GUI, run the following command from the command line or...
Read more >
Chocolatey Software Docs | Release Notes
For example, if you currently have chocolateygui v0.18.1 installed along with chocolateygui.extension v0.2.1 and you first upgrade to chocolateygui v0.19.0, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found