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



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


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation