Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Anonymous access required to restore
-
It seems that anonymous access is required in order to be able to restore packages. This is likely to cause serious issues with my planned rollout.
Running the command nuget restore produces:
Restoring NuGet package NUnit.3.9.0. GET https://proget.euleraerospace.com/nuget/Mirror/Packages(Id='NUnit',Version='3.9.0') OK https://proget.euleraerospace.com/nuget/Mirror/Packages(Id='NUnit',Version='3.9.0') 110ms GET https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0 OK https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0 94ms Installing NUnit 3.9.0. WARNING: Error downloading 'NUnit.3.9.0' from 'https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0'. End of Central Directory record could not be found. GET https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0 OK https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0 101ms Installing NUnit 3.9.0. WARNING: Error downloading 'NUnit.3.9.0' from 'https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0'. End of Central Directory record could not be found. GET https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0 OK https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0 97ms Installing NUnit 3.9.0. WARNING: Unable to find version '3.9.0' of package 'NUnit'. C:\Users\jeremy\.nuget\packages\: Package 'NUnit.3.9.0' is not found on source 'C:\Users\jeremy\.nuget\packages\'. https://proget.euleraerospace.com/nuget/Mirror/: Error downloading 'NUnit.3.9.0' from 'https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0'. End of Central Directory record could not be found. Errors in packages.config projects Unable to find version '3.9.0' of package 'NUnit'. C:\Users\jeremy\.nuget\packages\: Package 'NUnit.3.9.0' is not found on source 'C:\Users\jeremy\.nuget\packages\'. https://proget.euleraerospace.com/nuget/Mirror/: Error downloading 'NUnit.3.9.0' from 'https://proget.euleraerospace.com/nuget/Mirror/package/NUnit/3.9.0'. End of Central Directory record could not be found. NuGet Config files used: C:\Users\jeremy\AppData\Roaming\NuGet\NuGet.Config Feeds used: C:\Users\jeremy\.nuget\packages\ https://proget.euleraerospace.com/nuget/Mirror/
The file that is acutally downloaded as the nunit package is the HTML login page!
Conversely, running nuget list nunit generates a list from the protected feed:
--> nuget list nunit Using credentials from config. UserName: jeremy NUnit3TestAdapter 3.9.0 AcklenAvenue.Testing.BDD.NUnit 1.1.0.2 AggregateSource.Testing.NUnit 0.0.308 .....
Note that the list case actually reads the feed credentials from my nuget config file, which doesn't happen on a restore.
I have to be able to deny anonymous access to feeds. The server will be accessable to a distributed development team and VPN is not an option.
Is this a fundemental limitation of Nuget (in which case I need to get my Microsoft reps involved) of is this a misconfiguration of Proget? I'm running under IIS with forms and anonymous authentication enabled.
Jeremy
Product: ProGet
Version: 5.0.1
-
"End of Central Directory record could not be found." sounds like you have sound corrupt zip file / nuget packages. I recommend you to clear your cache and try again.
As long as you configure NuGet correctly, then protected feeds works fine.