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
-
I'm getting the following error when trying to browse the feed:
An unexpected error has occurred: Unable to cast object of type 'System.Func
2[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.
-
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.
-
I've emailed it to support at inedo.com
-
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.
-
We've added a workaround for this in ProGet 2.2.7 that should fix it.
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