Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

NuGet Package does not contain a manifest

Aperta
#537 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
tooling

Direzione di ricerca

Reproduce the upload using Microsoft.Web.LibraryManager.Build versions 2.0.76 or 2.0.96 and the documented NuGet.Server setup, then inspect the reported PackageHelper.GetManifestStream and PackageFactory.Open stack trace. Done means identifying whether the package or NuGet.Server is responsible and restoring a successful push with the documented nuget command.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello,

for our internal build and deploy, we have set up our own NuGet server as described in
https://docs.microsoft.com/en-us/nuget/hosting-packages/nuget-server

Using NuGet.Server version 3.4.1 including latest versions of all dependencies, behind an Microsoft IIS 7 server.

To this server, I am unable to upload the package
Microsoft.Web.LibraryManager.Build
from
https://www.nuget.org/packages/Microsoft.Web.LibraryManager.Build/
(tested with version 2.0.76 and 2.0.96).
I receive the error message described below.

Because this is the only package, where this error occurs, I believe it is an error in the package itself, not in the NuGet.Server. So I created the issue here in this project.

Best regards
Daniel

Functional impact

Unable to use the package "Microsoft.Web.LibraryManager.Build".

Minimal repro steps
  1. Download the NuGet package from the official gallery:
    https://www.nuget.org/packages/Microsoft.Web.LibraryManager.Build/

  2. Try to push it to the own server, e.g.
    nuget push microsoft.web.librarymanager.build.2.0.76.nupkg -src http://localhost

Expected result

Package should be pushed to the NuGet Server.

Actual result

Error message in client:
Return code 406 (Not Acceptable)

Error message in log file of the server:

w3wp.exe Error: 0 : System.InvalidOperationException: Package does not contain a manifest.
   bei NuGet.PackageHelper.GetManifestStream(Stream packageStream)
   bei NuGet.OptimizedZipPackage.EnsureManifest()
   bei NuGet.Server.Core.PackageFactory.Open(String fullPackagePath)
   bei NuGet.Server.V2.Controllers.NuGetODataController.<UploadPackage>d__16.MoveNext()
...
Lingua principale
C#
Stelle
486
Fork
91
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aspnet/LibraryManager

Tutte le issue di aspnet/LibraryManager

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.