This question is locked. New answers and comments are not allowed.
I encounter the following Inner exception when trying to query for data:
Found different versions of the same type 'ExperienceAttendanceSystem.Student'; only one can be supported. |
Conflicting: file:///C:/Users/<userprofile>/AppData/Local/Temp/Temporary ASP.NET Files/root/7f4f6ad9/51a443ed/App_Code.79pup705.DLL |
With: file:///C:/Users/<userprofile>/documents/visual studio 2010/Projects/ExperienceAttendanceSystem/ExperienceAttendanceSystem/bin/ExperienceAttendanceSystem.DLL |
Make sure to reference only one version of a type. |
My code is:
IObjectScope scope = ObjectScopeProvider1.GetNewObjectScope(); |
try |
{ |
scope.Transaction.Begin(); |
var student = from s in scope.Extent<Student>() |
where s.Id == batchorid || s.Currentbatch == batchorid |
select s; |
return student.ToList<Student>(); |
} |
finally |
{ |
scope.Transaction.Commit(); |
} |
I tried removing the cache but the exception still shows whenever I tried to compile at return student.ToList<Student>();