Description
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
-
Download the NuGet package from the official gallery:
https://www.nuget.org/packages/Microsoft.Web.LibraryManager.Build/ -
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()
...