I am not sure what is going on but I keep getting the following exception when doing a query. \"Duplicate type name within an assembly.\" I have not been able to find a solu
I too was facing similar sort of issue, I fixed it by converting the result set to List i.e
var registers = registerRepository.All.ToList().Where(a=>a.AreaLatitude.Equals(0));
Converting the result ToList solved the issue to iterate it further.
and solved the issue.