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!

    An error occurred in the web application: Value cannot be null. Parameter name: userName

    Scheduled Pinned Locked Moved Support
    buildmasterproget
    4 Posts 1 Posters 75 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

      The error occurs when attempting to restore packages for a .NET project using "dotnet restore -Source 'source-url' " on Linux and macOS, the command works as intended windows.

      The feed is setup to require authentication and nuget stores valid credentials for the source in the configfile, same credentials were used on all platforms. ProGet version is 4.8.5 build 1

      dotnet restore error:
      Retrying 'FindPackagesByIdAsyncCore' for source 'https://url/nuget/feed/FindPackagesById()?id='Microsoft.NETCore.App''.
      Response status code does not indicate success: 500 (Internal Server Error).

      ProGet Error log:
      Message:
      An error occurred in the web application: Value cannot be null. Parameter name: userName
      Details:
      URL: http://url/nuget/feed/FindPackagesById()?id='Package'
      Referrer: (not set)
      User: (unknown)
      User Agent: NuGet MSBuild Task/4.3.0 (Linux 4.9.49-moby #1 SMP Wed Sep 27 00:36:29 UTC 2017)
      Stack trace: at Inedo.ProGet.Extensibility.UserDirectories.BuiltInDirectory.TryGetAndValidateUser(String userName, String password)
      at Inedo.ProGet.WebApplication.ProGetHttpModule.ValidateUser(HttpApplication app, String userName, String password)
      at Inedo.Web.InedoHttpModule.AuthenticateRequestAsync(HttpApplication app)
      at Inedo.Web.InedoHttpModule.ProcessBegin(Object sender, EventArgs e, AsyncCallback cb, Object extraData)
      at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

      Product: BuildMaster
      Version: 5.8.1

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

        This appears to be a bug/limitation in dotnet on Linux; basically, at this time, it does not support authenticated (private) feeds at all. Unfortunately there is no work-around, you just have to make the feed allow anonymous. Microsoft is working on it, but has no ETA on a resolution/

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

          The docker image is updated for new releases but still beta. Is there any update on this?

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

            The docker image is no longer in Beta, FYI.

            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