System.ArgumentNullException: Value cannot be null.
Parameter name: name
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at ChocolateyGui.Common.Windows.ViewModels.SettingsViewModel.<OnActivated>d__100.MoveNext() in C:\buildAgent\work\774e9aed9020e028\Source\ChocolateyGui.Common.Windows\ViewModels\SettingsViewModel.cs:line 615
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at ChocolateyGui.App.Main(String[] args) in C:\buildAgent\work\774e9aed9020e028\Source\ChocolateyGui\App.xaml.cs:line 122
What is Expected?
For settings to load.
How Did You Get This To Happen? (Steps to Reproduce)
Open Chocolatey GUI
Click settings on the top right
System Details
OS Build (In PowerShell run [System.Environment]::OSVersion.version.tostring()): 10.0.19044.0
Windows PowerShell version (Run: $PSVersionTable): 5.1.19041.1620
I second this, seeing the same as a C4B customer. Fresh install of Chocolaty GUI with chocolateygui 1.1.0
chocolateygui.extension 1.0.0.
What is Expected?
For settings to load.
How Did You Get This To Happen? (Steps to Reproduce)
Open Chocolatey GUI
Click settings on the top right
System Details
OS Build (In PowerShell run [System.Environment]::OSVersion.version.tostring()): 10.0.19044.0
Windows PowerShell version (Run: $PSVersionTable): 5.1.19041.1682
Chocolatey version (Run choco --version): 1.1.0
Could you try running chocolateyguicli from an administrative terminal and report back if there is any output? If there is, perhaps try running chocolateyguicli feature and chocolateyguicli config and report back the outputs?
chocolateyguicli feature
Chocolatey GUI v1.1.0.0 Business
[ ] AllowNonAdminAccessToSettings - Controls whether or not a non-administrator user can access the Settings Screen. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[x] DefaultToDarkMode - Default to dark mode. It is still possible to switch during use.
[x] DefaultToTileViewForLocalSource - Default to tile instead of list view. It is still possible to switch during use.
[x] DefaultToTileViewForRemoteSource - Default to tile instead of list view. It is still possible to switch during use.
[ ] ExcludeInstalledPackages - Do not show packages that are already installed when viewing sources.
[ ] HideAllRemoteChocolateySources - Controls whether or not remote sources (for example the Chocolatey Community Repository) are displayed in Chocolatey GUI. Enabling this feature makes Chocolatey GUI a read-only application, that will only show the currently installed packages. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] HidePackageDownloadCount - Allows control over whether package download count is displayed on remote source views.
[x] HideThisPCSource - Controls whether or not the This PC source is displayed in Chocolatey GUI. Enabling this feature means that Chocolatey GUI will no longer show a list of all the currently installed packages on the machine. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] PreventAllPackageIconDownloads - Prevents the download of the icon for all package. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] PreventAutomatedOutdatedPackagesCheck - Prevents automated check for outdated packages on local and remote source views.
[ ] PreventPreload - Prevents preloading results with a blank search when opening the remote source view.
[ ] PreventUsageOfUpdateAllButton - Prevents the ability for user to use the Update All button. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] ShowAdditionalPackageInformation - Show additional package information on Local and Remote views.
[ ] ShowAggregatedSourceView - Show additional source combining all sources in one place.
[ ] ShowConsoleOutput - Shows output from the commands being executed when a job is running.
[ ] SkipModalDialogConfirmation - Skip modal dialog confirmations when performing potentially destructive actions.
[ ] UseDelayedSearch - Enables live search, which returns results after a short delay without clicking the search button.
[x] UseKeyboardBindings - Allows keyboard bindings to be used to interact with different areas of the Chocolatey GUI User Interface.
chocolateyguicli config
Chocolatey GUI v1.1.0.0 Business
DefaultSourceName = - The name of the source which should be shown by default when opening application. NOTE: This configuration setting will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
OutdatedPackagesCacheDurationInMinutes = 60 - Default timeout for outdated packages to be cached. Default is 60 minutes.
UseLanguage = en-US - The preferred language for Chocolatey GUI. Defaults to Windows System Locale.
What is the status of this issue? It seems to be unresolved still. I am an OSS user and I get the same exact error.
It points to this function, but I can't figure out which line. Line 627 can't be it, because GetString() is not called there. I can't find any reference to GetString() so it must be called indirectly...
My config:
OS: Win 10
System locale: de
❯ chocolateyguicli feature
Chocolatey GUI v2.0.0.0
[ ] AllowNonAdminAccessToSettings - Controls whether or not a non-administrator user can access the Settings Screen. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] DefaultToDarkMode - Default to dark mode. It is still possible to switch during use.
[x] DefaultToTileViewForLocalSource - Default to tile instead of list view. It is still possible to switch during use.
[x] DefaultToTileViewForRemoteSource - Default to tile instead of list view. It is still possible to switch during use.
[ ] ExcludeInstalledPackages - Do not show packages that are already installed when viewing sources.
[ ] HideAllRemoteChocolateySources - Controls whether or not remote sources (for example the Chocolatey Community Repository) are displayed in Chocolatey GUI. Enabling this feature makes Chocolatey GUI a read-only application, that will only show the currently installed packages. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] HidePackageDownloadCount - Allows control over whether package download count is displayed on remote source views.
[ ] HideThisPCSource - Controls whether or not the This PC source is displayed in Chocolatey GUI. Enabling this feature means that Chocolatey GUI will no longer show a list of all the currently installed packages on the machine. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] PreventAllPackageIconDownloads - Prevents the download of the icon for all package. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] PreventAutomatedOutdatedPackagesCheck - Prevents automated check for outdated packages on local and remote source views.
[ ] PreventPreload - Prevents preloading results with a blank search when opening the remote source view.
[ ] PreventUsageOfUpdateAllButton - Prevents the ability for user to use the Update All button. NOTE: This feature will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
[ ] ShowAdditionalPackageInformation - Show additional package information on Local and Remote views.
[ ] ShowAggregatedSourceView - Show additional source combining all sources in one place.
[ ] ShowConsoleOutput - Shows output from the commands being executed when a job is running.
[ ] SkipModalDialogConfirmation - Skip modal dialog confirmations when performing potentially destructive actions.
[ ] UseDelayedSearch - Enables live search, which returns results after a short delay without clicking the search button.
[x] UseKeyboardBindings - Allows keyboard bindings to be used to interact with different areas of the Chocolatey GUI User Interface.
❯ chocolateyguicli config
Chocolatey GUI v2.0.0.0
DefaultSourceName = - The name of the source which should be shown by default when opening application. NOTE: This configuration setting will only work with Chocolatey for Business and the Chocolatey GUI licensed extension installed.
OutdatedPackagesCacheDurationInMinutes = 60 - Default timeout for outdated packages to be cached. Default is 60 minutes.
UseLanguage = en-US - The preferred language for Chocolatey GUI. Defaults to Windows System Locale.
<?xml version="1.0" encoding="utf-8"?>
<chocolatey xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<config>
<add key="cacheLocation" value="" />
<add key="containsLegacyPackageInstalls" value="true" />
<add key="commandExecutionTimeoutSeconds" value="2700" />
<add key="proxy" value="" description="Explicit proxy location." />
<add key="proxyUser" value="" description="Optional proxy user." />
<add key="proxyPassword" value="" description="Optional proxy password. Encrypted." />
<add key="webRequestTimeoutSeconds" value="30" description="Default timeout for web requests." />
<add key="proxyBypassList" value="" description="Optional proxy bypass list. Comma separated." />
<add key="proxyBypassOnLocal" value="true" description="Bypass proxy for local connections." />
<add key="upgradeAllExceptions" value="" description="A comma-separated list of package names that should not be upgraded when running `choco upgrade all'. Defaults to empty." />
<add key="defaultTemplateName" value="" description="Default template name used when running 'choco new' command." />
<add key="defaultPushSource" value="" description="Default source to push packages to when running 'choco push' command." />
</config>
<sources>
<source id="chocolatey" value="https://community.chocolatey.org/api/v2/" disabled="false" bypassProxy="false" selfService="false" adminOnly="false" priority="0" />
</sources>
<features>
<feature name="checksumFiles" enabled="true" setExplicitly="false" description="Checksum files when pulled in from internet (based on package)." />
<feature name="autoUninstaller" enabled="true" setExplicitly="false" description="Uninstall from programs and features without requiring an explicit uninstall script." />
<feature name="allowGlobalConfirmation" enabled="false" setExplicitly="false" description="Prompt for confirmation in scripts or bypass." />
<feature name="failOnAutoUninstaller" enabled="false" setExplicitly="false" description="Fail if automatic uninstaller fails." />
<feature name="failOnStandardError" enabled="false" setExplicitly="false" description="Fail if install provider writes to stderr. Not recommended for use." />
<feature name="allowEmptyChecksums" enabled="false" setExplicitly="false" description="Allow packages to have empty/missing checksums for downloaded resources from non-secure locations (HTTP, FTP). Enabling is not recommended if using sources that download resources from the internet." />
<feature name="allowEmptyChecksumsSecure" enabled="true" setExplicitly="false" description="Allow packages to have empty/missing checksums for downloaded resources from secure locations (HTTPS)." />
<feature name="powershellHost" enabled="true" setExplicitly="false" description="Use Chocolatey's built-in PowerShell host." />
<feature name="logEnvironmentValues" enabled="false" setExplicitly="false" description="Log Environment Values - will log values of environment before and after install (could disclose sensitive data)." />
<feature name="virusCheck" enabled="false" setExplicitly="false" description="Virus Check - perform virus checking on downloaded files. Licensed versions only." />
<feature name="failOnInvalidOrMissingLicense" enabled="false" setExplicitly="false" description="Fail On Invalid Or Missing License - allows knowing when a license is expired or not applied to a machine." />
<feature name="ignoreInvalidOptionsSwitches" enabled="true" setExplicitly="false" description="Ignore Invalid Options/Switches - If a switch or option is passed that is not recognized, should choco fail?" />
<feature name="usePackageExitCodes" enabled="true" setExplicitly="false" description="Use Package Exit Codes - Package scripts can provide exit codes. With this on, package exit codes will be what choco uses for exit when non-zero (this value can come from a dependency package). Chocolatey defines valid exit codes as 0, 1605, 1614, 1641, 3010. With this feature off, choco will exit with 0, 1, or -1 (matching previous behavior)." />
<feature name="useEnhancedExitCodes" enabled="false" setExplicitly="false" description="Use Enhanced Exit Codes - Chocolatey is able to provide enhanced exit codes surrounding list, search, info, outdated and other commands that don't deal directly with package operations. To see enhanced exit codes and their meanings, please run `choco [cmdname] -?`. With this feature off, choco will exit with 0, 1, or -1 (matching previous behavior)." />
<feature name="exitOnRebootDetected" enabled="false" setExplicitly="false" description="Exit On Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires 'usePackageExitCodes' feature to be turned on. Will exit with either 350 or 1604. When it exits with 350, it means pending reboot discovered prior to running operation. When it exits with 1604, it means some work completed prior to reboot request being detected." />
<feature name="useFipsCompliantChecksums" enabled="false" setExplicitly="false" description="Use FIPS Compliant Checksums - Ensure checksumming done by choco uses FIPS compliant algorithms. Not recommended unless required by FIPS Mode. Enabling on an existing installation could have unintended consequences related to upgrades/uninstalls." />
<feature name="showNonElevatedWarnings" enabled="true" setExplicitly="false" description="Show Non-Elevated Warnings - Display non-elevated warnings." />
<feature name="showDownloadProgress" enabled="true" setExplicitly="false" description="Show Download Progress - Show download progress percentages in the CLI." />
<feature name="stopOnFirstPackageFailure" enabled="false" setExplicitly="false" description="Stop On First Package Failure - Stop running install, upgrade or uninstall on first package failure instead of continuing with others. As this will affect upgrade all, it is normally recommended to leave this off." />
<feature name="useRememberedArgumentsForUpgrades" enabled="false" setExplicitly="false" description="Use Remembered Arguments For Upgrades - When running upgrades, use arguments for upgrade that were used for installation ('remembered'). This is helpful when running upgrade for all packages. This is considered in preview and will be flipped to on by default in a future release." />
<feature name="ignoreUnfoundPackagesOnUpgradeOutdated" enabled="false" setExplicitly="false" description="Ignore Unfound Packages On Upgrade Outdated - When checking outdated or upgrades, if a package is not found against sources specified, don't report the package at all." />
<feature name="skipPackageUpgradesWhenNotInstalled" enabled="false" setExplicitly="false" description="Skip Packages Not Installed During Upgrade - if a package is not installed, do not install it during the upgrade process." />
<feature name="removePackageInformationOnUninstall" enabled="false" setExplicitly="false" description="Remove Stored Package Information On Uninstall - When a package is uninstalled, should the stored package information also be removed? " />
<feature name="logWithoutColor" enabled="false" setExplicitly="false" description="Log without color - Do not show colorization in logging output." />
<feature name="logValidationResultsOnWarnings" enabled="true" setExplicitly="false" description="Log validation results on warnings - Should the validation results be logged if there are warnings?" />
<feature name="usePackageRepositoryOptimizations" enabled="true" setExplicitly="false" description="Use Package Repository Optimizations - Turn on optimizations for reducing bandwidth with repository queries during package install/upgrade/outdated operations. Should generally be left enabled, unless a repository needs to support older methods of query. When disabled, this makes queries similar to the way they were done in earlier versions of Chocolatey." />
<feature name="disableCompatibilityChecks" enabled="false" setExplicitly="false" description="Disable Compatibility Checks - Should a warning we shown, before and after command execution, when a runtime compatibility check determines that there is an incompatibility between Chocolatey and Chocolatey Licensed Extension. Available in 1.1.0+" />
</features>
<apiKeys />
</chocolatey>
This has been resolved. The issue stemmed from setting a chocolatey
licensed only option in the config before adding the chocolatey licensed
extension and license
On Thu, Jun 8, 2023 at 11:14 AM Sympatron GmbH @.***>
wrote: