choco
choco copied to clipboard
[NuGet] Exception has been thrown by the target of an invocation.
What You Are Seeing?
choco outdated
gives [NuGet] Exception has been thrown by the target of an invocation.
PS C:\Windows\system32> choco outdated --verbose
Chocolatey v0.10.7 Outdated Packages Output is package name | current version | available version | pinned?
[NuGet] Exception has been thrown by the target of an invocation. autohotkey.portable|1.1.26.00|1.1.26.00|false ...
What is Expected?
Shouldn't get an exception.
How Did You Get This To Happen? (Steps to Reproduce)
I ran choco outdated
.
Output Log
2017-06-21 13:34:00,607 8408 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2017-06-21 13:34:00,607 8408 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2017-06-21 13:34:00,626 8408 [DEBUG] - XmlConfiguration is now operational
2017-06-21 13:34:00,649 8408 [INFO ] - ============================================================
2017-06-21 13:34:00,800 8408 [INFO ] - Chocolatey v0.10.7
2017-06-21 13:34:00,811 8408 [DEBUG] - Chocolatey is running on Windows v 6.1.7601.65536
2017-06-21 13:34:00,815 8408 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-06-21 13:34:00,818 8408 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-06-21 13:34:00,829 8408 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" outdated --debug --verbose
2017-06-21 13:34:00,832 8408 [DEBUG] - Received arguments: outdated --debug --verbose
2017-06-21 13:34:00,873 8408 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-06-21 13:34:00,881 8408 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2017-06-21 13:34:00,890 8408 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2017-06-21 13:34:00,931 8408 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2017-06-21 13:34:00,935 8408 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
2017-06-21 13:34:00,945 8408 [DEBUG] - Configuration: CommandName='outdated'|
CacheLocation='C:\Users\jkolb-admin\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|AllVersions='False'|
SkipPackageInstallProvider='False'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.1.7601.65536'|
Information.PlatformName='Windows 7'|
Information.ChocolateyVersion='0.10.7.0'|
Information.ChocolateyProductVersion='0.10.7'|
Information.FullName='choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='jkolb-admin'|
Information.UserDomainName='ago-jkolblt'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2017-06-21 13:34:00,987 8408 [DEBUG] - _ Chocolatey:ChocolateyOutdatedCommand - Normal Run Mode _
2017-06-21 13:34:00,996 8408 [INFO ] - Outdated Packages
Output is package name | current version | available version | pinned?
2017-06-21 13:34:01,200 8408 [DEBUG] - 7zip 16.4.0.20170506
2017-06-21 13:34:01,206 8408 [DEBUG] - 7zip.install 16.4.0.20170506
2017-06-21 13:34:01,210 8408 [DEBUG] - autohotkey.portable 1.1.26.00
2017-06-21 13:34:01,213 8408 [DEBUG] - chocolatey 0.10.7
2017-06-21 13:34:01,215 8408 [DEBUG] - chocolatey-core.extension 1.3.1
2017-06-21 13:34:01,239 8408 [DEBUG] - ChocolateyGUI 0.13.2
2017-06-21 13:34:01,242 8408 [DEBUG] - cmake 3.8.2
2017-06-21 13:34:01,245 8408 [DEBUG] - cmake.install 3.8.2
2017-06-21 13:34:01,249 8408 [DEBUG] - ConsoleZ 1.18.1.17087
2017-06-21 13:34:01,251 8408 [DEBUG] - DotNet4.6.1 4.6.01055.20170308
2017-06-21 13:34:01,254 8408 [DEBUG] - Ghostscript 9.21.0.20170331
2017-06-21 13:34:01,257 8408 [DEBUG] - Ghostscript.app 9.21.0.20170331
2017-06-21 13:34:01,259 8408 [DEBUG] - git 2.13.1.2
2017-06-21 13:34:01,263 8408 [DEBUG] - git.install 2.13.1.2
2017-06-21 13:34:01,265 8408 [DEBUG] - jdk8 8.0.131
2017-06-21 13:34:01,268 8408 [DEBUG] - KB2919355 1.0.20160915
2017-06-21 13:34:01,272 8408 [DEBUG] - KB2919442 1.0.20160915
2017-06-21 13:34:01,274 8408 [DEBUG] - mongodb 3.2.10
2017-06-21 13:34:01,276 8408 [DEBUG] - mongodb.install 3.2.10
2017-06-21 13:34:01,278 8408 [DEBUG] - nodejs.install 7.8.0
2017-06-21 13:34:01,280 8408 [DEBUG] - notepadplusplus 7.4.2
2017-06-21 13:34:01,283 8408 [DEBUG] - notepadplusplus.install 7.4.2
2017-06-21 13:34:01,288 8408 [DEBUG] - P4Merge 2017.2.1518788
2017-06-21 13:34:01,291 8408 [DEBUG] - paint.net 4.0.16
2017-06-21 13:34:01,294 8408 [DEBUG] - PowerShell 5.1.14409.20170510
2017-06-21 13:34:01,296 8408 [DEBUG] - putty 0.69
2017-06-21 13:34:01,298 8408 [DEBUG] - putty.portable 0.69
2017-06-21 13:34:01,300 8408 [DEBUG] - python2 2.7.13
2017-06-21 13:34:01,306 8408 [DEBUG] - sysinternals 2017.6.14
2017-06-21 13:34:01,308 8408 [DEBUG] - vcredist2012 11.0.61031
2017-06-21 13:34:01,310 8408 [DEBUG] - vcredist2013 12.0.30501.20150616
2017-06-21 13:34:01,315 8408 [DEBUG] - vlc 2.2.6
2017-06-21 13:34:01,317 8408 [DEBUG] - windbg 10.0.10586.15
2017-06-21 13:34:01,321 8408 [DEBUG] - WinPcap 4.1.3.20161116
2017-06-21 13:34:01,323 8408 [DEBUG] - winscp 5.9.5
2017-06-21 13:34:01,326 8408 [DEBUG] - winscp.install 5.9.5
2017-06-21 13:34:01,328 8408 [DEBUG] - wireshark 2.2.7
2017-06-21 13:34:08,006 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:08,012 8408 [INFO ] - autohotkey.portable|1.1.26.00|1.1.26.00|false
2017-06-21 13:34:09,374 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:09,381 8408 [INFO ] - chocolatey|0.10.7|0.10.7|false
2017-06-21 13:34:13,870 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:13,874 8408 [INFO ] - git|2.13.1.2|2.13.1.2|false
2017-06-21 13:34:14,367 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:14,371 8408 [INFO ] - git.install|2.13.1.2|2.13.1.2|false
2017-06-21 13:34:16,035 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:16,042 8408 [INFO ] - nodejs.install|7.8.0|7.8.0|false
2017-06-21 13:34:16,598 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:16,605 8408 [INFO ] - notepadplusplus|7.4.2|7.4.2|false
2017-06-21 13:34:17,116 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:17,120 8408 [INFO ] - notepadplusplus.install|7.4.2|7.4.2|false
2017-06-21 13:34:19,120 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:19,123 8408 [INFO ] - sysinternals|2017.6.14|2017.6.14|false
2017-06-21 13:34:20,952 8408 [WARN ] - [NuGet] Exception has been thrown by the target of an invocation.
2017-06-21 13:34:20,960 8408 [INFO ] - wireshark|2.2.7|2.2.7|false
2017-06-21 13:34:20,979 8408 [WARN ] -
Chocolatey has determined 0 package(s) are outdated.
9 package(s) had warnings.
2017-06-21 13:34:20,987 8408 [WARN ] - Warnings:
2017-06-21 13:34:20,994 8408 [WARN ] - - chocolatey
2017-06-21 13:34:20,997 8408 [WARN ] - - git.install
2017-06-21 13:34:21,001 8408 [WARN ] - - notepadplusplus
2017-06-21 13:34:21,005 8408 [WARN ] - - wireshark
2017-06-21 13:34:21,007 8408 [WARN ] - - sysinternals
2017-06-21 13:34:21,010 8408 [WARN ] - - notepadplusplus.install
2017-06-21 13:34:21,012 8408 [WARN ] - - nodejs.install
2017-06-21 13:34:21,014 8408 [WARN ] - - autohotkey.portable
2017-06-21 13:34:21,016 8408 [WARN ] - - git
2017-06-21 13:34:21,022 8408 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2017-06-21 13:34:21,027 8408 [DEBUG] - Exiting with 0
Hi @kjeremy a little more triage - does rolling back down to an older version of Chocolatey (say 0.10.3) still produce this same error?
Do you get this error every time? Do you have an internal proxy?
This suddenly went away. I'm wondering if it has something to do with our corporate internet.
Or did you set up the proxy settings?
I didn't touch any settings. Maybe they touched something on their end.
I have same error, and when I try wget in powershell í get: wget : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
Same issue, setting proxy via: $env:chocolateyProxyLocation = 'https://local/prox y/server'
didn't work. Proxy is already set at system level. Could it be corporate "endpoint protection"?
I can add a MeTo, v0.10.11, on our corporate network (but used to work). Same exception on windows 10 and win7.
Follow up; a day later (today) problem has gone away.... (?)
Has anyone seen this issue since 2018?
Due to this issue being stale, I'm going to go ahead and close it. We can always re-open it again if needed.