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

Unhandled exception #799

Closed
s-celles opened this issue Jan 3, 2021 · 1 comment
Closed

Unhandled exception #799

s-celles opened this issue Jan 3, 2021 · 1 comment

Comments

@s-celles
Copy link

s-celles commented Jan 3, 2021

Hello,

Chocolatey GUI is raising an unhandled exception when listing packages from chocolatey.

2021-01-03 13:14:48,124 10964 [WARN ] - 
Chocolatey installed 0/0 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2021-01-03 13:14:48,124 10964 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2021-01-03 13:14:48,124 10964 [ERROR] - �l�ment racine manquant.
2021-01-03 13:14:48,140 10964 [ERROR] - More Details: System.Xml.XmlException: �l�ment racine manquant.
   � System.Xml.XmlTextReaderImpl.Throw(Exception e)
   � System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   � System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   � NuGet.XmlUtility.LoadSafe(Stream input, Boolean ignoreWhiteSpace)
   � NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema)
   � NuGet.LocalPackage.ReadManifest(Stream manifestStream)
   � NuGet.UnzippedPackage.EnsureManifest(String manifestFilePath)
   � NuGet.LocalPackageRepository.OpenPackage(String path)
   � NuGet.LocalPackageRepository.GetPackage(Func`2 openPackage, String path)
   � NuGet.LocalPackageRepository.<GetPackages>d__28.MoveNext()
   � NuGet.CollectionExtensions.AddRange[T](ICollection`1 collection, IEnumerable`1 items)
   � NuGet.LocalPackageRepository.FindPackagesById(Func`2 openPackage, String packageId)
   � NuGet.PackageRepositoryExtensions.FindPackagesById(IPackageRepository repository, String packageId)
   � NuGet.PackageRepositoryExtensions.FindPackage(IPackageRepository repository, String packageId, SemanticVersion version, IPackageConstraintProvider constraintProvider, Boolean allowPrereleaseVersions, Boolean allowUnlisted)
   � chocolatey.infrastructure.app.services.NugetService.install_run(ChocolateyConfiguration config, Action`1 continueAction)
   � chocolatey.infrastructure.app.services.ChocolateyPackageService.perform_source_runner_function[T](ChocolateyConfiguration config, Func`2 function)
   � chocolatey.infrastructure.app.services.ChocolateyPackageService.install_run(ChocolateyConfiguration config)
   � chocolatey.infrastructure.app.runners.GenericRunner.run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
   � chocolatey.infrastructure.app.runners.ConsoleApplication.run(String[] args, ChocolateyConfiguration config, Container container)
   � chocolatey.console.Program.Main(String[] args)
2021-01-03 13:14:48,140 10964 [DEBUG] - Exiting with 1

I don't know exactly what is wrong with my install ...

Any idea?

Kind regards

@s-celles
Copy link
Author

s-celles commented Jan 3, 2021

I think it's related to chocolatey/choco#717

I found empty file using

ChildItem C:\ProgramData\chocolatey\lib\*\*.nu* | where Length -lt 1kb | Sort-Object Length -Descending

After deleting it... it works fine.

@s-celles s-celles closed this as completed Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant