c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
asp.net MVC

The type EntityState is defined in an assembly that is not referenced. You must add a reference to assembly System.Data.Entity

| | ASP-NET , MVC

The type 'EntityState' 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'. The type 'EntityState' is defined in an assembly that is not referenced.

I got the following error on my web controller page.Finally I do the following changes to my project. It works fine.

1.      Right click on your project.

2.      Choose Add Reference

3.      On .NET tab, select reference System.Data.Entity and click OK