Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    proget
    2 Posts 1 Posters 11 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        "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.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation