Wednesday, July 25, 2012

CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced.

When  using  Entity frame work . passing  the  data  with control i got  one error 

"Compiler Error Message: CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."

After  R & D  i  found  solution. so  i  am  posting  this  solutions because i don't  want  to  waste  your lot  of  time like as  i  did.

here  is  solution type following code  in  your web config  file  


" "

Thanks  Happy Coding