Could not find instance member ToList on type System.Collections.Generic.IList<Vykon.Domain.QueryService.Patient.ReadModels.VykonRm>.
The solution is to rebuild whole project. FE compilation does not seem to be deterministic at this point. Do you have any idea what is wrong here? Or I am expecting too much from IList in GridViewDataSet?
FYI: I used expression without .ToList() in the past with similar error and I think the exception occurred more often.
Thanks for letting us know, this does not sound good. We have got a report of non-deterministic extension method resolution previously, but were unable to pin down the issue Your expression should definitely work, we have similar ones in our tests which do work fine (I tried over 2M restarts…).
Could you please share bit more information about your deployment? (mainly OS, .NET version) Does it occur only in prod/development or both?
Anyway, the issue seems to be in our extension methods implementation, so you can probably workaround it by calling the method as static (i.e. Enumerable.Any(Enumerable.ToList(_root.VykonsOverviewViewModel.MedicalProcedures), x => x.IdCvykon == CVykonId.MicrofluidicSpermSorting)).
I don’t want to write misleading information, so I will inspect it more for a while. I was unable to reproduce the issue in separate DEMO project. I will post my results.
Thank you! I totally believe that this bug exists as I have got similar reports. It would be great, if you would be able to figure out what is the difference between the broken and a working application