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.

Null reference exception is thrown when accessing the Chocolatey GUI settings screen

See original GitHub issue

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.

What You Are Seeing?

I just did a fresh install of Chocolatey 2.0.0 through powershell on Win 10 Home as an OSS user. I installed the ChocolateyGUI package. When I open ChocolateyGUI as admin, and click on Settings, it immediately throws the following NullException and then crashes. Screenshot 2023-05-31 072129

What is Expected?

I expected to see the settings menu

How Did You Get This To Happen?

  1. Open ChocolateyGUI
  2. Click Settings

System Details

  • Operating System: 10.0.19045.0
  • Windows PowerShell version: 5.1.19041.2673
  • Chocolatey CLI Version: 2.0.0
  • Chocolatey Licensed Extension version: Chocolatey v2.0.0
  • Chocolatey License type: open source / free
  • Terminal/Emulator: Powershell

Installed Packages

-lo is invalid

Chocolatey v2.0.0
7zip.install 22.1.0
adobereader 2023.1.20143
chocolatey 2.0.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolateygui 2.0.0
dotnetfx 4.8.0.20220524
KB2919355 1.0.20160915
KB2919442 1.0.20160915
notepadplusplus.install 8.5.3
11 packages installed.

Output Log

2023-05-31 07:18:49.608 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:18:49.729 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 117ms
2023-05-31 07:19:57.506 -07:00 [Fatal] Unhandled Exception
2023-05-31 07:45:48.683 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 07:45:59.752 -07:00 [Fatal] Unhandled Exception
2023-05-31 07:49:22.924 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 07:49:27.112 -07:00 [Fatal] Unhandled Exception
2023-05-31 07:52:33.609 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 07:52:42.332 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:52:43.383 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0
2023-05-31 07:52:43.475 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0 88ms
2023-05-31 07:52:43.603 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:52:44.712 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0
2023-05-31 07:52:44.792 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0 77ms
2023-05-31 07:52:45.076 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:52:45.147 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm=''&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 69ms
2023-05-31 07:53:00.634 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:01.645 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0
2023-05-31 07:53:01.871 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0 223ms
2023-05-31 07:53:01.976 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:03.124 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0
2023-05-31 07:53:03.369 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0 242ms
2023-05-31 07:53:03.508 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:53:03.734 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 225ms
2023-05-31 07:53:23.243 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:24.357 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0
2023-05-31 07:53:24.437 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=0&$top=30&semVerLevel=2.0.0 78ms
2023-05-31 07:53:24.537 -07:00 [Information] [NuGet] Enhanced retry: HttpRetryHandler is in a state that retry would have been abandoned or not waited if it were not enabled.
2023-05-31 07:53:25.570 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0
2023-05-31 07:53:25.643 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&$skip=30&$top=20&semVerLevel=2.0.0 70ms
2023-05-31 07:53:25.757 -07:00 [Information] [NuGet]   GET https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0
2023-05-31 07:53:25.824 -07:00 [Information] [NuGet]   OK https://community.chocolatey.org/api/v2/Search()/$count?$filter=IsLatestVersion&$orderby=DownloadCount desc,Id&searchTerm='chocolatey'&targetFramework=''&includePrerelease=false&semVerLevel=2.0.0 65ms
2023-05-31 07:53:43.633 -07:00 [Fatal] Unhandled Exception
2023-05-31 08:06:26.524 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2023-05-31 08:06:30.382 -07:00 [Fatal] Unhandled Exception

Additional Context

No response

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mattgyver-itcommented, Jun 9, 2023

I upgraded the package, and settings loads fine now! Thanks!

1reaction
IT-Apklcommented, Jun 20, 2023

Had the same issue but couldn’t find this report. Adding keywords to make this issue easier to find.

Keywords:

  • System.ArgumentNullException
  • System.Resources.ResourceManager.GetString
  • Parameter name: name
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chocolatey Software Docs | Troubleshooting
You may be attempting to use Chocolatey or upgrade a package and suddenly you are getting access denied errors starting mid-install/upgrade. Run cmd.exe...
Read more >
Chocolatey GUI fails to launch when data.db is corrupted
When %appdata%\Local\Chocolatey Gui\data.db is corrupted, Chocolatey GUI will fail to launch with no apparent output.
Read more >
Chocolatey Software Docs | Known Issues
Current known issues regarding Chocolatey GUI. ... NullReferenceException: Object reference not set to an instance of an object.
Read more >
Chocolatey Software Docs | Release Notes
Fix - Null reference exception is thrown when accessing the Chocolatey GUI settings screen - see #1003. Improvement. Provide ability to use option...
Read more >
Releases · chocolatey/ChocolateyGUI
Fix - Null reference exception is thrown when accessing the Chocolatey GUI settings screen - see #1003. Improvement. Provide ability to use option...
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