LINQ Errors: “The Type arguements for method cannot be inferred from the usage. Try specifying the type arguments explicitly ” & for the data context object “There is no implicit reference conversion from XXX RepositoryContainer(ReportContext) to System.Data.Objects.ObjectContext”.
Day before yesterday, we faced minor problem in compiling our wcf service which is using LINQ for DML operations. It’s continuously yielding in giving the errors like “The Type arguments for method cannot be inferred from the usage. Try specifying the type arguments explicitly ” & for the data context object “There is no implicit reference conversion from XXX RepositoryContainer(ReportContext) to System.Data.Objects.ObjectContext ”.
We are actually using Entity framework and LINQ to entity.
After a couple of hours, I actually dig into the problem and I found that the project in which the entity is being queried is missing the assembly reference >> System.LINQ. Adding reference to this fixed the problem.