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 unexpected error has occurred

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

      I'm getting the following error when trying to browse the feed:

      An unexpected error has occurred: Unable to cast object of type 'System.Func2[Inedo.ProGet.Packages.LocalPackageSource+LocalPackage,System.Boolean]' to type 'System.Func2[Inedo.ProGet.Packages.ProGetFeedPackage,System.Boolean]'.

      I'm using IIS hosted ProGet 2.2.6 (build 8).

      Freshly installed. It was working, I pulled a few packages from the public NuGet server, then it stopped working.

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

        Can you email us or post the list of packages you downloaded? You can get this from disk, in the packages folder?

        We are trying to track down this bug, and believe it to be coming from a package.

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

          I've emailed it to support at inedo.com

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

            We've identified this as a bug in .NET 4. Those types are definitely castable per covariance rules (LocalPackage inherits ProGetFeedPackage), but the CLR is throwing these exceptions (but only sometimes, and only when within a certain stack frame... which is why it's intermittent).

            Installing .NET 4.5 or 4.5.1 seems to fix the problem.

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

              We've added a workaround for this in ProGet 2.2.7 that should fix it.

              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