Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outdated - Running outdated produces a warning - "Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles: There is an error in XML document (77, 90)" #1333

Open
kjeremy opened this issue Jun 12, 2017 · 14 comments

Comments

@kjeremy
Copy link

kjeremy commented Jun 12, 2017

What You Are Seeing?

choco outdated

Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
There is an error in XML document (77, 90).

What is Expected?

For the command to show outdated packages

How Did You Get This To Happen? (Steps to Reproduce)

Typed in choco outdated into an admin powershell

Output Log

Chocolatey v0.10.7
Chocolatey is running on Windows v 6.1.7601.65536
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" outdated --debug --verbose
Received arguments: outdated --debug --verbose
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type

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.
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'|
_ Chocolatey:ChocolateyOutdatedCommand - Normal Run Mode _
Outdated Packages
 Output is package name | current version | available version | pinned?

7zip 16.4.0.20170506
7zip.install 16.4.0.20170506
autohotkey.portable 1.1.26.00
Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 169
This is try 1/3. Retrying after 400 milliseconds.
 Error converted to warning:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 190
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__1() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 53
   at chocolatey.infrastructure.synchronization.GlobalMutex.enter[T](Func`1 func, Int32 timeout) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\synchronization\GlobalMutex.cs:line 110
   at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 93
Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 169
This is try 2/3. Retrying after 600 milliseconds.
 Error converted to warning:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 190
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__1() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 53
   at chocolatey.infrastructure.synchronization.GlobalMutex.enter[T](Func`1 func, Int32 timeout) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\synchronization\GlobalMutex.cs:line 110
   at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 93
Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 169
Maximum tries of 3 reached. Throwing error.
chocolatey 0.10.7
chocolatey-core.extension 1.3.1
ChocolateyGUI 0.13.2
cmake 3.8.2
cmake.install 3.8.2
ConsoleZ 1.18.1.17087
DotNet4.6.1 4.6.01055.20170308
Ghostscript 9.21.0.20170331
Ghostscript.app 9.21.0.20170331
git 2.13.0
git.install 2.13.0
jdk8 8.0.131
KB2919355 1.0.20160915
KB2919442 1.0.20160915
mongodb 3.2.10
mongodb.install 3.2.10
nodejs.install 7.8.0
notepadplusplus 7.4.1
notepadplusplus.install 7.4.1
P4Merge 2017.1.1491634
paint.net 4.0.16
PowerShell 5.1.14409.20170510
putty 0.69
putty.portable 0.69
python2 2.7.13
sysinternals 2017.05.22
vlc 2.2.6
windbg 10.0.10586.15
WinPcap 4.1.3.20161116
winscp 5.9.5
winscp.install 5.9.5
wireshark 2.2.7
Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 169
This is try 1/3. Retrying after 400 milliseconds.
 Error converted to warning:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 190
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__1() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 53
   at chocolatey.infrastructure.synchronization.GlobalMutex.enter[T](Func`1 func, Int32 timeout) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\synchronization\GlobalMutex.cs:line 110
   at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 93
Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 169
This is try 2/3. Retrying after 600 milliseconds.
 Error converted to warning:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 190
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__1() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 53
   at chocolatey.infrastructure.synchronization.GlobalMutex.enter[T](Func`1 func, Int32 timeout) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\synchronization\GlobalMutex.cs:line 110
   at chocolatey.infrastructure.tolerance.FaultTolerance.retry[T](Int32 numberOfTries, Func`1 function, Int32 waitDurationMilliseconds, Int32 increaseRetryByMilliseconds, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 93
Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles:
 System.InvalidOperationException: There is an error in XML document (77, 90). ---> System.Xml.XmlException: '', hexadecimal value 0x13, is an invalid character. Line 77, position 90.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read3_PackageFiles(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPackageFiles.Read4_fileSnapshot()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at chocolatey.infrastructure.services.XmlService.<>c__DisplayClass4`1.<deserialize>b__2() in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\services\XmlService.cs:line 96
   at chocolatey.infrastructure.tolerance.FaultTolerance.try_catch_with_logging_exception[T](Func`1 function, String errorMessage, Boolean throwError, Boolean logWarningInsteadOfError, Boolean logDebugInsteadOfError, Boolean isSilent) in c:\codelocal\chocolatey2\src\chocolatey\infrastructure\tolerance\FaultTolerance.cs:line 169
Maximum tries of 3 reached. Throwing error.
nodejs.install|7.8.0|8.1.0|false
sysinternals|2017.05.22|2017.5.22.20170609|false

Chocolatey has determined 2 package(s) are outdated. 

Enjoy using Chocolatey? Explore more amazing features to take your 
experience to the next level at
 https://chocolatey.org/compare
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with 0
@ferventcoder
Copy link
Member

ferventcoder commented Jun 12, 2017

Related to #1328

Hi @kjeremy can you tell me what is in C:\ProgramData\Chocolatey\.chocolatey\chocolatey.0.10.7\.files and C:\ProgramData\Chocolatey\.chocolatey\nodejs.install.7.8.0\.files

If you could zip those two files up and post them here that would be great!

@ferventcoder
Copy link
Member

For the command to show outdated packages

It does show you the outdated packages, however there are a couple of those with errors so it is giving that warning.

@kjeremy
Copy link
Author

kjeremy commented Jun 12, 2017

Here you go choco-stuff.zip

@ferventcoder
Copy link
Member

Not sure how this happens, what did you upgrade Chocolatey from (what version)?

 <file path="C:\ProgramData\chocolatey\lib\chocolatey\tools\chocolateyInstall\redir΍L�sĜ߭񩊄~ŠŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'Xր{獔�آ�ߗ؋d/ڤl!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'Xրγ�Ԙ⃓�+;ሦÆŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրhʖΏׄlVĐUfêᥬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'Xր4ӃˈSÍC̵n�}ʤl!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!?rCΩqKh'XրŬ!

@kjeremy
Copy link
Author

kjeremy commented Jun 13, 2017 via email

@ferventcoder
Copy link
Member

Delete that file and you should be good.

@ferventcoder
Copy link
Member

Now we need to figure out why adding the transaction locks (mutexes) around the management of those files would actually cause them to do worse things.

@kjeremy
Copy link
Author

kjeremy commented Jun 13, 2017

@ferventcoder Which file should I delete?

@ferventcoder
Copy link
Member

C:\ProgramData\Chocolatey\.chocolatey\chocolatey.0.10.7\.files

@kjeremy
Copy link
Author

kjeremy commented Jun 21, 2017

That fixed it.

@ferventcoder
Copy link
Member

Good - we'll still need to track this down.

@ferventcoder ferventcoder changed the title Chocolatey outdated gives: Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles: There is an error in XML document (77, 90). outdated - Running outdated produces "Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles: There is an error in XML document (77, 90)" Aug 3, 2019
@ferventcoder ferventcoder added this to the 0.10.17 milestone Aug 3, 2019
@ferventcoder ferventcoder changed the title outdated - Running outdated produces "Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles: There is an error in XML document (77, 90)" outdated - Running outdated produces a warning - "Error deserializing response of type chocolatey.infrastructure.app.domain.PackageFiles: There is an error in XML document (77, 90)" Aug 3, 2019
@ferventcoder ferventcoder modified the milestones: 0.10.17, 0.10.18 Jan 14, 2020
@baldfox
Copy link

baldfox commented Jul 22, 2020

I had a similar problem. Wrote up a quick easy to follow post on how i fixed it. Hope it helps. https://www.thesmarthomebook.com/2020/07/22/fixing-the-chocolatey-deserializing-error/

@creativesoftwaregun
Copy link

had this issue after a manually aborted choco installation. tried adding --trace to the uninstall command and from the output saw lines such as

Entered mutex to deserialize 'D:\Chocolatey\.chocolatey\KB3033929.1.0.5\.files'

deleted all the .files that was associated with the error

image

after that error msg no longer appears when doing upgrade or uninstall

@digitalohm
Copy link

had this issue after a manually aborted choco installation. tried adding --trace to the uninstall command and from the output saw lines such as

Entered mutex to deserialize 'D:\Chocolatey\.chocolatey\KB3033929.1.0.5\.files'

deleted all the .files that was associated with the error

image

after that error msg no longer appears when doing upgrade or uninstall

adding --trace and removing the .files associated with the error worked for me as well. FWIW they were both from dotnet and dotnet-fx installations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants