Acchhh… the type ‘System.Data.EntityState’ is defined in an assembly that is not referenced…

This was a complete googlewhack; when I entered the complete text, I got exactly one response! BTW, when I try now I am up to three, so there are obviously at least two more people with the same challenges that I have…

 

So, you look up the generic advice and they say a variation on the below;

  • Update web.config to read "<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />"

All very exciting, but the key bit of information that we're missing is that adding the EntityFramework DLL / namespace does not complete the picture.

Make sure you add the .Net library "System.Data.Entity" and all will be well.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">